Skip to content

mindconnect-nodejs cli - assign roles #292

Answered by sn0wcat
ValeWuerz asked this question in Q&A
Discussion options

You must be logged in to vote

But you can use the groups and membergroups interface to accomplish the same thing:

1. creating the group

the 4 default roles of mindsphere are called

mdsp:core:Developer
mdsp:core:StandardUser
mdsp:core:TenantAdmin
mdsp:core:DeveloperAdmin

so you can do something like this:

 mc iam --mode create --group MyAdmins

which creates a new user group (note that the CLI will automatically prefix the group with mdsp_usergroup:

User Group in the MindSphere

After that you can assign the roles and subgroups via the --assign command

2) lets give the users in the group the Admin Role

 mc iam --mode assign  --membergroup mdsp_usergroup:MyAdmins --group mdsp:core:TenantAdmin --raw

which assigns the ro…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ValeWuerz
Comment options

Answer selected by sn0wcat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants