Skip to Content
author's profile photo Former Member
Former Member

isAdmin() meathod of IUser.

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 04, 2005 at 11:09 AM

    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/user 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!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.