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
12 h3. Workbench: user management
14 As an Admin user, use the gear icon on the top right to visit the Users page. From there, use the 'Add new user' button to create a new user. Alternatively, visit an existing user with the 'Show' button next to the user's name. Then use the 'Admin' tab and click the 'Setup' button to activate the user, and create a virtual machine login as well as git repository for them.
19 ARVADOS_API_HOST={{ site.arvados_api_host }}
20 ARVADOS_API_TOKEN=1234567890qwertyuiopasdfghjklzxcvbnm1234567890zzzz
26 arv virtual_machine create --virtual-machine '{"hostname":"xxxxxxxchangeme.example.com"}'
29 h3. CLI: Activate user
31 Note this bypasses user agreements checks, and does not set up the user with a default git repository or VM login.
34 user_uuid=xxxxxxxchangeme
36 arv user update --uuid "$user_uuid" --user '{"is_active":true}'
41 This creates a default git repository and VM login.
44 user_uuid=xxxxxxxchangeme
46 arv user setup --uuid "$user_uuid"
49 h3. CLI: Deactivate user
52 user_uuid=xxxxxxxchangeme
54 arv user unsetup --uuid "$user_uuid"
59 Give @$user_uuid@ permission to log in to @$vm_uuid@ as @$target_username@
62 user_uuid=xxxxxxxchangeme
63 vm_uuid=xxxxxxxchangeme
64 target_username=xxxxxxxchangeme
66 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
68 "tail_uuid":"$user_uuid",
69 "head_uuid":"$vm_uuid",
70 "link_class":"permission",
72 "properties":{"username":"$target_username"}
77 h3. CLI: User → repo
79 Give @$user_uuid@ permission to commit to @$repo_uuid@ as @$repo_username@
82 user_uuid=xxxxxxxchangeme
83 repo_uuid=xxxxxxxchangeme
84 repo_username=xxxxxxxchangeme
86 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
88 "tail_uuid":"$user_uuid",
89 "head_uuid":"$repo_uuid",
90 "link_class":"permission",
92 "properties":{"username":"$repo_username"}