X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b54d7820e899733ce10b8960b1f04d0481f2e11f..0561bd0c3c07257fd58ded6c7cfa5feeae97af57:/doc/api/methods/users.html.textile.liquid diff --git a/doc/api/methods/users.html.textile.liquid b/doc/api/methods/users.html.textile.liquid index 9fbbda54e6..3a28e1e856 100644 --- a/doc/api/methods/users.html.textile.liquid +++ b/doc/api/methods/users.html.textile.liquid @@ -3,56 +3,72 @@ layout: default navsection: api navmenu: API Methods title: "users" - ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. -h1. users +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} -Required arguments are displayed in %{background:#ccffcc}green%. +API endpoint base: @https://{{ site.arvados_api_host }}/arvados/v1/users@ +Object type: @tpzed@ -h2. create +Example UUID: @zzzzz-tpzed-0123456789abcde@ -Create a new User. +h2. Resource -Arguments: +Users represent individuals with access to the Arvados cluster. + +Each User has, in addition to the "Common resource fields":{{site.baseurl}}/api/resources.html: table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -|user|object||query|| +|_. Attribute|_. Type|_. Description|_. Example| +|email|string||| +|username|string|The username used for the user's git repositories and virtual machine logins. Usernames must start with a letter, and contain only alphanumerics. When a new user is created, a default username is set from their e-mail address. Only administrators may change the username.|| +|first_name|string||| +|last_name|string||| +|identity_url|string||| +|is_admin|boolean||| +|prefs|hash||| +|default_owner_uuid|string||| +|is_active|boolean||| +|writable_by|array|List of UUID strings identifying Groups and other Users that can modify this User object. This will include the user's owner_uuid and, for administrators and users requesting their own User object, the requesting user's UUID.|| + +h2. Methods + +See "Common resource methods":{{site.baseurl}}/api/methods.html for more information about @create@, @delete@, @get@, @list@, and @update@. -h2. current +Required arguments are displayed in %{background:#ccffcc}green%. -current users +h3. create + +Create a new User. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | +|user|object||query|| -h2. delete +h3. current -Delete an existing User. +Get the user associated with the provided API token. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string|The UUID of the User in question.|path|| -h2. destroy +h3. delete -destroy users +Delete an existing User. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string||path|| - -h2. event_stream - -event_stream users +{background:#ccffcc}.|uuid|string|The UUID of the User in question.|path|| Arguments: @@ -60,7 +76,7 @@ table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | {background:#ccffcc}.|uuid|string||path|| -h2. get +h3. get Gets a User's metadata by UUID. @@ -70,51 +86,22 @@ table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | {background:#ccffcc}.|uuid|string|The UUID of the User in question.|path|| -h2. index - -index users - -Arguments: - -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -|order|string||query|| -|where|object||query|| - -h2. list +h3. list List users. -Arguments: - -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -|limit|integer (default 100)|Maximum number of users to return.|query|| -|order|string|Order in which to return matching users.|query|| -|pageToken|string|Page token.|query|| -|q|string|Query string for searching users.|query|| -|where|object|Conditions for filtering users.|query|| - -h2. show - -show users - -Arguments: - -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string||path|| +See "common resource list method.":{{site.baseurl}}/api/methods.html#index -h2. system +h3. system -system users +Get the user record for the "system user.":{{site.baseurl}}/api/permission-model.html#system Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -h2. update +h3. update Update attributes of an existing User.