4 title: User management at the CLI
7 Copyright (C) The Arvados Authors. All rights reserved.
9 SPDX-License-Identifier: CC-BY-SA-3.0
15 ARVADOS_API_HOST={{ site.arvados_api_host }}
16 ARVADOS_API_TOKEN=1234567890qwertyuiopasdfghjklzxcvbnm1234567890zzzz
19 In these examples, @x1u39-tpzed-3kz0nwtjehhl0u4@ is the sample user account. Replace with the uuid of the user you wish to manipulate.
21 See "user management":{{site.baseurl}}/admin/activation.html for an overview of how to use these commands.
25 This creates a default git repository and VM login. Enables user to self-activate using Workbench.
28 arv user setup --uuid x1u39-tpzed-3kz0nwtjehhl0u4
34 arv user unsetup --uuid x1u39-tpzed-3kz0nwtjehhl0u4
37 When deactivating a user, you may also want to "reassign ownership of their data":{{site.baseurl}}/admin/reassign-ownership.html .
39 h3. Directly activate user
42 arv user update --uuid "x1u39-tpzed-3kz0nwtjehhl0u4" --user '{"is_active":true}'
45 Note this bypasses user agreements checks, and does not set up the user with a default git repository or VM login.
52 Give @$user_uuid@ permission to log in to @$vm_uuid@ as @$target_username@
55 user_uuid=xxxxxxxchangeme
56 vm_uuid=xxxxxxxchangeme
57 target_username=xxxxxxxchangeme
59 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
61 "tail_uuid":"$user_uuid",
62 "head_uuid":"$vm_uuid",
63 "link_class":"permission",
65 "properties":{"username":"$target_username"}
72 Give @$user_uuid@ permission to commit to @$repo_uuid@ as @$repo_username@
75 user_uuid=xxxxxxxchangeme
76 repo_uuid=xxxxxxxchangeme
77 repo_username=xxxxxxxchangeme
79 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
81 "tail_uuid":"$user_uuid",
82 "head_uuid":"$repo_uuid",
83 "link_class":"permission",
85 "properties":{"username":"$repo_username"}