Function
| Arg | Description | Type |
|---|---|---|
| user | The user to create or update. | string (required) |
| roles | List of roles to give the user. | list of string |
| orgs | One or more org IDs to grant access to. If not specified we use current org | list of string |
| policy | A dict of permissions to set (e.g. as obtained from the gui_users() function). | ordereddict.Dict |
Grants the user the specified roles.