cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to assign/remove role from user using a service?

0 Kudos
714

Instead of going to MII menu -> search for user -> select user -> select tab "Assigned Roles" -> Modify -> Add|Remove -> ... -> Save

I would like to use an MII service. Is there any? If yes, what is the syntax for adding/removing a role?

View Entire Topic
agentry_src
Active Contributor
0 Kudos

Ordinarily I would not just paste a link, but this document is a little more difficult to find than searches for other solutions.

https://blogs.sap.com/2013/01/02/illuminator-services-of-sap-mii/

Cheers, Mike

former_member292526
Discoverer
0 Kudos

thanks for this, I saw this, but I would like to know the details...the mode is maybe "ProfileEditor" ? in this case what is the "PayloadXML" ?

agentry_src
Active Contributor
0 Kudos

The document is pretty comprehensive. Start with something simple like logged on Users or Admin Users list to get used to using the xml queries. Then try with the ProfileEditor or whichever other service you think would work. If UME is connected to an outside Access and Authentication processor like LDAP, you may have problems, but the way you described what you do normally would indicate this is not the case. You can use the [Param.X] in the xml link for passing variables.

0 Kudos

Then maybe we have different understanding about "comprehensive". According to me that page is very poor regarding details. Let's have "user1" and "role1", then the following call will list all info about "user1" (also "role1" will be displayed if "user1" has assigned to himself):

http://some_mii_system:50000//XMII/Illuminator?service=admin&mode=FullProfile&Group=user1&Content-Ty...

and the following call will display all the roles:

http://some_mii_system:50000/XMII/Illuminator?service=SystemInfo&mode=RoleList&RowCount=1000&Content-Type=text/xml

But I would like to add/remove "role1" for "user1". What's the syntax?

Thx

agentry_src
Active Contributor
0 Kudos

Comprehensive in that the list is very complete. I agree that much more could have been done with instructions and samples.