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
32 user_uuid=xxxxxxxchangeme
34 arv user update --uuid "$user_uuid" --user '{"is_active":true}'
39 Give @$user_uuid@ permission to log in to @$vm_uuid@ as @$target_username@
42 user_uuid=xxxxxxxchangeme
43 vm_uuid=xxxxxxxchangeme
44 target_username=xxxxxxxchangeme
46 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
48 "tail_uuid":"$user_uuid",
49 "head_uuid":"$vm_uuid",
50 "link_class":"permission",
52 "properties":{"username":"$target_username"}
57 h3. CLI: User → repo
59 Give @$user_uuid@ permission to commit to @$repo_uuid@ as @$repo_username@
62 user_uuid=xxxxxxxchangeme
63 repo_uuid=xxxxxxxchangeme
64 repo_username=xxxxxxxchangeme
66 read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
68 "tail_uuid":"$user_uuid",
69 "head_uuid":"$repo_uuid",
70 "link_class":"permission",
72 "properties":{"username":"$repo_username"}