-
Hello mindsphere developers. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
That doesn't work yet, because the Roles API is for some reason not an official API of MindSphere. the roles are available on a special endpoint which is not documented : https:// and the policy for the CLI was to not use undocumented endpoints. // @ChristophDoehl |
Beta Was this translation helpful? Give feedback.
-
But you can use the groups and membergroups interface to accomplish the same thing: 1. creating the groupthe 4 default roles of mindsphere are called
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 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 role TenantAdmin to the group MyAdmins please notice the *note: The group has now admin role: Lets give the group also vfc admin role.mc iam --mode assign --membergroup mdsp_usergroup:MyAdmins --group mdsp:core:vfc.admin --raw 3) Assign the group to the user: mc iam --mode assign --user sn0wcat_at_mindsphere.io --group mdsp_usergroup:MyAdmins --raw User assignement in mindsphere: HTH |
Beta Was this translation helpful? Give feedback.
-
Update, there is now a role support in the CLI too. |
Beta Was this translation helpful? Give feedback.
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
so you can do something like this:
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
which assigns the ro…