-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to assign roles to a user
- Loading branch information
Showing
6 changed files
with
201 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: default | ||
--- | ||
# auth0 users roles assign | ||
|
||
Assign existing roles to a user. | ||
|
||
## Usage | ||
``` | ||
auth0 users roles assign [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
``` | ||
auth0 users roles assign <user-id> | ||
auth0 users roles add <user-id> --roles <role-id1,role-id2> | ||
auth0 users roles add <user-id> -r "rol_1eKJp3jV04SiU04h,rol_2eKJp3jV04SiU04h" --json | ||
``` | ||
|
||
|
||
## Flags | ||
|
||
``` | ||
--json Output in json format. | ||
-r, --roles strings Roles to assign to a user. | ||
``` | ||
|
||
|
||
## InheritedFlags | ||
|
||
``` | ||
--debug Enable debug mode. | ||
--no-color Disable colors. | ||
--no-input Disable interactivity. | ||
--tenant string Specific tenant to use. | ||
``` | ||
|
||
|
||
## Related Commands | ||
|
||
- [auth0 users roles assign](auth0_users_roles_assign.md) - Assign roles to a user | ||
- [auth0 users roles show](auth0_users_roles_show.md) - Show a user's roles | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,10 +464,6 @@ tests: | |
email: [email protected] # Name is not being displayed, hence using email | ||
exit-code: 0 | ||
|
||
users roles show: | ||
command: auth0 users roles show $(cat ./test/integration/identifiers/user-id) | ||
exit-code: 0 | ||
|
||
# Test 'roles create' | ||
roles create and check data: | ||
command: auth0 roles create --name integration-test-role-new1 --description testRole --json --no-input | ||
|
@@ -736,3 +732,11 @@ tests: | |
update universal login branding prompts (mfa-push): | ||
command: cat ./test/integration/fixtures/update-ul-prompts-mfa-push.json | auth0 ul prompts update mfa-push | ||
exit-code: 0 | ||
|
||
users roles show: | ||
command: auth0 users roles show $(cat ./test/integration/identifiers/user-id) | ||
exit-code: 0 | ||
|
||
users roles add: | ||
command: auth0 users roles add $(cat ./test/integration/identifiers/user-id) -r $(cat ./test/integration/identifiers/role-id) | ||
exit-code: 0 |