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)

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 management engine - version 4.0/com/sap/security/api/iuser.html#ismemberofrole(java.lang.String, boolean) for details.

Hope it helps


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

Answers (0)