cancel
Showing results for 
Search instead for 
Did you mean: 

hasPermission and UME Web Service Access

Former Member
0 Kudos

Hi!

Does anyone know how to call hasPermission from a web service? I have a web service running out on the WebAS, and I am trying to use an IUser from the Role Factory to call hasPermission(...); however it always returns false. Is it because there is no context for the user when coming in through the web service?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

public boolean hasPermission(Permission permission)

Returns true if the user has the given permission.

Parameters:

permission - com.sap.ip.me.api.security.Permission object which is checked

Returns:

true if the user has the given permission.

for more information please check out the link below it might help you

https://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/javadoc/index-all.html

***************please reward points if the information is helpful to you****************