User management
Guide explains how to manipulate user and team members using Supervisely SDK and API
Introduction
How to debug this tutorial
git clone https://github.com/supervisely-ecosystem/automation-with-python-sdk-and-api
cd automation-with-python-sdk-and-api
./create_venv.shcode -r .CONTEXT_TEAMID=8 # ⬅️ change it
CONTEXT_USERID=7 # ⬅️ change it CONTEXT_USERLOGIN="my_username" # ⬅️ change it
User automation
Import libraries
Init API client
Get your IDs and username from environment
List available roles on Supervisely instance
Get UserInfo about yourself
Get UserInfo by ID
List all team users with corresponding roles
Methods that require admin permisssion
List all registered users
Get UserInfo by login
List all user teams with corresponding roles
Create new user
Update user info
Disable/Enable user
Invite user to team
Change user role in team
Remove user from team
Last updated