cancel
Showing results for 
Search instead for 
Did you mean: 

isAdmin() meathod of IUser.

Former Member
0 Kudos

The request.getUser().isAdmin() meathod is deprecated. I want to know what are the alternative methods to know wheather the user is Admin or no?

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Ravi,

is this from EP5? Anyhow, what do you want to check? What kind of admin (SuperAdmin, ContentAdmin, ...). In general, you can use the isMemberOfRole method to retrieve such information. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/javadocs/nw04/sp12... management engine - version 4.0/com/sap/security/api/iuser.html#ismemberofrole(java.lang.String, boolean) for details.

Hope it helps

Detlev

PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Answers (0)