cancel
Showing results for 
Search instead for 
Did you mean: 

check if a user has a specific role

matthias_prller
Participant
0 Kudos

Hello,

Is it possible to check if a user has a specific role in MII 12.0?

For example if the user has the role "xmii Developers" I would do something more in a transaction than if the user doesn't have this role.

Thank you for your help.

Regards,

Matthias

Accepted Solutions (1)

Accepted Solutions (1)

abesh
Contributor
0 Kudos

Hello Matthias,

Does this blog of mine help you ?

[SAP MII : Role based access to content|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9253] [original link is broken] [original link is broken] [original link is broken];

Best

Abesh

abesh
Contributor
0 Kudos

To clarify my last post a little more...

1) You should have set AutoBind to True for the XacuteConnector.

2) Your Transaction should have an Input parameter called IllumLoginRoles.

Note that this parameter would be automatically populated by MII at runtime and would not have values if you execute it through the workbench.

matthias_prller
Participant
0 Kudos

Hello,

I use IllumLoginName very often but didn't know the IllumLoginRoles. This solved my Problem.

Thank you.

Regards

Matthias

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Matthias Pröller ,

Are u finding difficulty to trace which role user is assigned to? If so, then u can refer Abesh's Blog.

OR

If you are writing Transaction to get user list based on Role , then u can do following

Create XML query.

Configure above XML Query in Transaction, in links map (XML Query) URL like given below

"https://Server:Port/XMII/Illuminator?service=admin&Mode=UserList&Content-Type=text/xml&group=XMII Administrators&IllumLoginName=loginId&IllumLoginPassword=pwd"

Regards,

Padma

Edited by: Rao on Mar 31, 2009 11:52 AM