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

what is Iuser?

Hi Gurus,

what is Iuser?

what is the use of it?

Thanks in Advance,

Dharani

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2008 at 10:51 AM

    hiii Dharani..

    use this link , it contain lot off information http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/package-summary.html.

    Give rewards if usefull for u.

    Regards

    Mayank saxena.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2008 at 09:58 AM

    Hello Dharani,

    IUser is a public interface under com.sap.security.api package and it is present in com.sap.security.api.jar file. This jar file you can get if you have installed NWDS (Netweaver development studio).

    This interface provides read-access to the user's attributes, and offers basic support for authorization checking. Implementations of this interface must make sure that all get-methods with a return type of String, e.g. getFax(), getCompanyId() etc. return null if that attribute either does not exist or has a null value in the user store. This does NOT apply to the generic getAttribute...() methods.

    This interface mainly delas with user details, to get all users, to get user info, etc.

    Refer to following snippet of java code:

    
    try {
    			IUserFactory uf = UMFactory.getUserFactory();
    			ISearchResult result = uf.getUniqueIDs();
    			while (result.hasNext()) {
    				String uniqueid = result.next().toString();
    				IUser user = uf.getUser(uniqueid);
    				String userid = user.getUniqueName();
    				//response.write("<BR>"+ uniqueid + " "+ user + "  "+ userid+" <BR>");
    				response.write("<BR>"+ userid+" <BR>");
    			}
    		} catch (UMException um) {
    			response.write("In Catch : <BR>");
    			response.write("excp is " + um.toString());
    		}
    
    

    also refer to following links for more clear understanding:-

    https://www.sdn.sap.com/irj/sdn/thread?messageID=5428797#5428797

    https://www.sdn.sap.com/irj/sdn/thread?messageID=5312444#5312444

    Hope this solves your query... 😊

    Regards,

    Yogesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2008 at 09:51 AM

    Hi

    IUserfactory provides means to instantiate user objects,create users,delete users ,search for users based on different criteria.

    Acccess to user factory can be obtained using following packages

    import com.sap.security.api;

    IuserFactory userfact=UMFactory.getUserFactory();

    Methods are provided to instantiateuser objects given a login id

    IUserFactory userfact=UMFactory.getUserFactory();

    getUserFactory().getUser(String uniqueid);

    get the user with login id

    getUserFactory.getUser(string uniqueid,AttributeList attrlist)

    The IUser object contains most the information that you probably need regarding a user. Information about the name of the user, their unique ID, LDAP attributes,display name, role membership, etc are available from the IUser object.

    Thanks,

    Tulasi

    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.