on 08-04-2005 11:36 AM
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?
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.