Sap r/3 4.7 user information

hi,  is there any one who can tell me that in any organigation how can we check how many users in that company.
i am not talking about here logged in  user  rather i am talking about the  quantity of that users.

Hi,
SAP Audit means SAP license Audit,
Each SAP system must be measured with the measurement program. Afterwards, the results of the individual systems are combined in the License Administration Workbench, consolidated, and sent to SAP.
for that you need to Classify the users in all clients and systems in accordance with
the agreements in your SAP software contract.
you are still getting the list of user in sap using the path which i given to you if you system audit is not perform.
else you can use SU01 as Mr. Sergo Beradze  suggested.
regards,
kaushal

Similar Messages

  • Obtaining SAP User information from J2EE Application

    Hi All,
    I am using SAP NetWeaver Developer Studio to create a J2EE Application, which requires accessing user information from SAP coming from Windows Active Directory.
    My question is as follows;
    Is there a possibility in a J2EE application to use an API to obtain user information (ie. from com.sap.security.api.jar) just like in a regular WebDyn Pro Application?
    For Archive Build Info (compile time), do I need to import specific JARs? For runtime, do I need to load any project reference?
    Thanks in advance,
    Michael

    Yes, I have added 'Run time' as well as 'Build time' for the com.sap.security.api.sda DC as well as for com.sap.tc.Logging DC.
    I have also added the following references to application-j2ee-engine.xml file:
    <application-j2ee-engine>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.security.api.sda</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.tc.Logging</reference-target>
         </reference>
         <provider-name>srl.com</provider-name>
         <fail-over-enable
              mode="disable"/>
    </application-j2ee-engine>
    I am still experiencing the same problem:
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:178)
         at srl.com.birthday.daemon.BirthdaysDaemon.loadEmployeesUser(BirthdaysDaemon.java:114)
         at srl.com.birthday.daemon.BirthdaysDaemon.run(BirthdaysDaemon.java:72)
         at java.lang.Thread.run(Thread.java:534)
    Is there any other JAR I forgot to add to my used DC? Is the security JAR dependant on something else?
    Thanks,
    Michael

  • GRC-AC v5.3, patch8.1: cannot retrieve user information in CUP Request

    Hello,
    version: GRC-AC v5.3, patch8.1
    I am currently having trouble bringing up user information in a CUP Request. It is only occuring in our GRC-AC DEV system. I have checked that all of my AE Config settings are the same and the backend system RTA is correct.
    Thanks for your help!
    Here is the AE Log:
    2009-12-02 14:21:48,912 [SAPEngine_Application_Thread[impl:3]_35] ERROR com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No more storage space available for extending an internal table.
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No more storage space available for extending an internal table.
                            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516)
                            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514)
                            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980)
                            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417)
                            at com.virsa.ae.service.sap.SAPR3UserDAO.executeFind(SAPR3UserDAO.java:441)
                            at com.virsa.ae.service.sap.SAPR3UserDAO.getUsers(SAPR3UserDAO.java:1762)
                            at com.virsa.ae.service.umi.sap.SAPR3SearchUser.getUsers(SAPR3SearchUser.java:317)
                            at com.virsa.ae.search.bo.SearchUserBO.findUsers(SearchUserBO.java:110)
                            at com.virsa.ae.search.actions.SearchUserAction.searchUsers(SearchUserAction.java:2315)
                            at com.virsa.ae.search.actions.SearchUserAction.searchRequestors(SearchUserAction.java:1999)
                            at com.virsa.ae.search.actions.SearchUserAction.execute(SearchUserAction.java:260)
                            at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
                            at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
                            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
                            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(Native Method)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    2009-12-02 14:21:48,931 [SAPEngine_Application_Thread[impl:3]_35] ERROR Search could not be completed
    com.virsa.ae.service.ServiceException: No more storage space available for extending an internal table.
                            at com.virsa.ae.service.sap.SAPR3UserDAO.executeFind(SAPR3UserDAO.java:444)
                            at com.virsa.ae.service.sap.SAPR3UserDAO.getUsers(SAPR3UserDAO.java:1762)
                            at com.virsa.ae.service.umi.sap.SAPR3SearchUser.getUsers(SAPR3SearchUser.java:317)
                            at com.virsa.ae.search.bo.SearchUserBO.findUsers(SearchUserBO.java:110)
                            at com.virsa.ae.search.actions.SearchUserAction.searchUsers(SearchUserAction.java:2315)
                            at com.virsa.ae.search.actions.SearchUserAction.searchRequestors(SearchUserAction.java:1999)
                            at com.virsa.ae.search.actions.SearchUserAction.execute(SearchUserAction.java:260)
                            at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
                            at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
                            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
                            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(Native Method)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No more storage space available for extending an internal table.
                            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516)
                            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514)
                            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980)
                            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417)
                            at com.virsa.ae.service.sap.SAPR3UserDAO.executeFind(SAPR3UserDAO.java:441)
                            ... 23 more
    2009-12-02 14:21:48,937 [SAPEngine_Application_Thread[impl:3]_35] ERROR Search could not be completed
    com.virsa.ae.service.umi.UMIException: Search could not be completed
                            at com.virsa.ae.service.umi.sap.SAPR3SearchUser.getUsers(SAPR3SearchUser.java:326)
                            at com.virsa.ae.search.bo.SearchUserBO.findUsers(SearchUserBO.java:110)
                            at com.virsa.ae.search.actions.SearchUserAction.searchUsers(SearchUserAction.java:2315)
                            at com.virsa.ae.search.actions.SearchUserAction.searchRequestors(SearchUserAction.java:1999)
                            at com.virsa.ae.search.actions.SearchUserAction.execute(SearchUserAction.java:260)
                            at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
                            at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
                            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
                            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(Native Method)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.virsa.ae.service.ServiceException: No more storage space available for extending an internal table.
                            at com.virsa.ae.service.sap.SAPR3UserDAO.executeFind(SAPR3UserDAO.java:444)
                            at com.virsa.ae.service.sap.SAPR3UserDAO.getUsers(SAPR3UserDAO.java:1762)
                            at com.virsa.ae.service.umi.sap.SAPR3SearchUser.getUsers(SAPR3SearchUser.java:317)
                            ... 21 more
    Caused by: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No more storage space available for extending an internal table.
                            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516)
                            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514)
                            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980)
                            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417)
                            at com.virsa.ae.service.sap.SAPR3UserDAO.executeFind(SAPR3UserDAO.java:441)
                            ... 23 more
    2009-12-02 14:21:48,943 [SAPEngine_Application_Thread[impl:3]_35] ERROR  Error in Searching Users...
    com.virsa.ae.core.BOException:  Error in Searching Users...
                            at com.virsa.ae.search.bo.SearchUserBO.findUsers(SearchUserBO.java:125)
                            at com.virsa.ae.search.actions.SearchUserAction.searchUsers(SearchUserAction.java:2315)
                            at com.virsa.ae.search.actions.SearchUserAction.searchRequestors(SearchUserAction.java:1999)
                            at com.virsa.ae.search.actions.SearchUserAction.execute(SearchUserAction.java:260)
                            at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
                            at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
                            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
                            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
                            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
                            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
                            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                            at java.security.AccessController.doPrivileged(Native Method)
                            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
                            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

    Hi,
    As per error log, sounds space issue.
    "ERROR com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No more storage space available for extending an internal table. com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No more storage space available for extending an internal table."
    Check the tablespace with your Basis guy and increase it if neccessary.
    Regards,
    Sabita

  • In which table deleted user information is stored

    Hi all,
    I have made one user ZTEST in sap through SU01. Its details has been stored in USR01 .
    When i deleted this user than the details of this user has been deleted from the tables USR01.
    After deletion on which table deleted user information is stored.
    Any BAPI is available which sgives the deleted table list .
    Thanks & regards

    Hi
    You can get current database status using the following BAPIs-
    BAPI_USER_EXISTENCE_CHECK
    BAPI_USER_GETLIST
    BAPI_USER_GET_DETAIL
    Also check the report RPUAUD00 in which you can find out new infotype creation/modification etc.
    Regards

  • URL iView Problem - How to Use URL Parameter of Type 'User Information'

    Hello URL iView experts
    I am currently working on integration of backend-functionality with the help of an URL iView.
    I want to use a parameter of type 'User Information'. In SAP Help Library it is said, that it is possible to set the value of a parameter according to a dynamic query on the users attributes. (Link SAP HELP)
    It is also said, that one can retrieve the Logon ID of the users account.(Attribute Name: j_user -> Link SAP HELP Attributes )
    I can choose the type 'User Information' but i don't know what to specify in the field 'Value'.
    I have made a screenshot of the problem.->[Link to screenshot|http://img66.imageshack.us/img66/7782/urliviewproblemfrsdnthrel3.jpg]
    But if i am calling the application this way, he doesn't retrieve the Logon-ID of the account, but he just uses the 'j_user' as value for the parameter.
    Can you tell me, what i need to specify in the field value?
    Best Regards
    Marcus
    Edited by: Marcus Böhm on Jun 2, 2008 1:22 PM

    Hi Marcus,
    > It is also said, that one can retrieve the Logon ID of the users account
    This is not correct; on the help.sap.com-page concerning the URL-iView-Parameters, it is printed that "other attributes (general, account, group, role) are not supported". The j_user attribute is part of the account group, so - not supported.
    For your needs, it may be a better choose to use the AppIntegrator, which offers such a possibility by using "<User.LogonUid>"; see http://help.sap.com/saphelp_nw70/helpdata/EN/36/5e3842134bad04e10000000a1550b0/frameset.htm and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0cbc309-ff89-2a10-8bad-bcde4c152ecb
    Hope it helps
    Detlev

  • How to get the ep user information data in the web dynpro?

    Hi all
      I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.

    Lin,
    Two steps to achieve this:-
    <b>Step 1:</b> Add the following code in your view Controller:-
    IWDClientUser user = WDClientUser.getCurrentUser();
    IUser objUser = user.getSAPUser();
    wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
    wdContext.currentContextElement().setYYYY(objUser.getFirstName());
    wdContext.currentContextElement().setZZZZ(objUser.getLastName());
    where XXXX, YYYY , ZZZZ are the context names.
    getUniqueName : Gives Login id of Portal user.
    getFirstName : Gives First Name of the Portal user.
    getLastname : Gives Last Name of the Portal user.
    <b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
    The external jars are :
    <b>com.sap.security.api.jar
    com.sap.security.api.perm.jar</b>
    Finally rebuild your project and deploy.
    Regards,
    <b>Chintan Virani.</b>

  • Need Users information since one month or one year

    I have cheked with 'ST03' but am getting only one week data of users after that popup message is 'list contains no data'. In our system 'audit security log' is inactive so iam unable to view with SM19. STAT also not giving that much sufficient data.
    so how can I get users information means what tcodes they used one (month back ) and logon time every thing .Is there any reports /tables to view the data which is related to users. give your suggestion soon.
    Thanks,
    nani

    Hi Nani,
    Please follow this:
    go to st03n
    in exper mode-then collector and performance database
    then workload collector->under this go to total collector->then go to control and double click
    it will show u the view SAP NW Worload collector:maintain the collector parameters
    make sure that under week aggr.,month aggr and Gen total all are check in
    follow the note 12103 to make sure the job is running fine
    let me know if this helps
    Rohit

  • How to verify the user information pass by the form with a stored procedure?

    Hi,
    I would like to know how to verify user information pass by the form with a stored procedure.
    I want make a portal which accepts to new user registration, but I want verify the new user's informations (like the name don't contain a number etc).
    Thanks for your help
    regards
    jla

    Hi Samson,
    You can use the UI API to do this. You can catch the form_ADD event and then validate the input from the users. You can even block the event from completing (and stop the document from being added) if your code finds some incorrect data using the bubbleEvent functionality.
    I don't have one specific example to show you, but if you look at some of the SDK samples (for example C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\02.CatchingEvents) to see how to work with events, you can then create your own validation to ensure the users data is valid.
    Regards,
    Niall

  • How we can get the current running user information in BusinessOne

    Hi experts,
    How we can get the current running user information in BusinessOne Application,
    Based on the user details i want to assign some functionality,
    Regards,
    Saidarao yakkala

    Hi,
    As per me you can't get detail by server side.
    If you want to know who are connected then you can use sp_who2 procedure in SQL query.
    That will display who are login.
    For more detail you have to check LOG file on client side in SAP B1 > Log folder.
    Thanks
    Kevin

  • Extending user information entries?

    Hi there!
    Is it possible to extend the user information (such as E-Mail address or Telephone) with "arbitrary" data (e.g. Age / Date of Birth)?
    The entries "Position" and "Department" of "Additional Information" make it seem possible to me, I haven't found anything so far, though...
    Thanks in advance!
    Dennis

    Hi Dennis,
    yes it is.
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/d2ffd64602c149949ca3cf379dc295/content.htm
    These additional attributes are stored in the database.
    If you only want to display addtional iViews that are stored in your corporate ldap, the configuration would be different.
    Regards, Karsten

  • CCMS Alerts with user information

    Dear SAP professionals,
    We are required by our custoner to generate CCMS alerts for dialog steps per user.
    We found alerts for dialog steps in the SAP defined monitor.
    However, our customer want user information included in the alerts.
    In particular, we need to have these information in the alert message;
    A notice that dialog steps per user exceeded the threshold.
    A namd of the user who executes the dialog steps.
    If there is no pre-defined monitoring template which satisfies the above requirement, we are looking into defining our own alerts.
    So, if anybody can help us by giving ideas on how we can create an alert to satisfy the requirements above.
    Best Regards
    Kentaro Kawamoto

    Dear Ms. Sanchez,
    Thank you very much for your help.
    I will try to follow the set-up material for custom-exit to see if our customer's requirements could be satisfied.
    For mow, it has been very helpful for us to know the web page area where technical documents are stored.
    Thank you very much for your help.
    Could we wait to close this message  until we try the documents?
    Nonethless please let me express that we all thank for your information.
    Best Regards
    Kentaro Kawamoto

  • BAPI or RFC that contains the user information

    Hi,
    Please let me know if there is any BAPI or RFC that contains the user information like user IDs, passwords etc. I need that to use in the XI. I am using SAP system as the target system or the source system .
    Thanks
    kanan

    Hello Kanan
    Just call function module BAPI_USER_GET_DETAIL.
    Regards
      Uwe

  • Rertrival user information in EP 6.0

    Dear all,
    i m using ep6.0 sp18
    how to get EPuser information list who is logging and logged information.
    that to can i get list who has used perticular transaction as VA01 Transaction in R3.
    i want to display these information into one field or view.
    what is the code have to add and where should i?
    can any body give the solution?
    Regards
    Kumar.

    Hi Kumar
    yes it is posible get user information through  webdynpro as Portal application.
    here i give the code in portal application.
    package com.sap;
    import java.util.Iterator;
    import com.sap.security.api.*;
    import com.sapportals.portal.prt.component.*;
    public class Userinfo extends AbstractPortalComponent {
         public void doContent(
              IPortalComponentRequest request,
              IPortalComponentResponse response) {
              IUser user = request.getUser();
              response.write("<h3>Sample User Info</h3>");
              response.write("Display Name: " + user.getDisplayName());
              response.write("<br>First/Last Name: "
                        + user.getFirstName()
                        + " "
                        + user.getLastName());
              response.write("<br>Email: " + user.getEmail());
              response.write("<br>Phone: " + user.getTelephone());
              response.write("<br>OLD METHOD CALL getUid() returns: "
                        + user.getUid());
              response.write("<br>Unique ID: " + user.getUniqueID());
              response.write("<br>Attributes: ");
              String namespaces[] = user.getAttributeNamespaces();
              String ns = null;
             for (int i = 0; i < namespaces.length; i++) {
                   if (i > 0)
                        ns = namespaces<i>;
                   String attrNames[] = user.getAttributeNames(ns);
                   if (ns != null)
                        response.write("<br>NS: " + ns);
                   for (int j = 0; j < attrNames.length; j++) {
                        Object attr[] = user.getAttribute(ns, attrNames[j]);
                        response.write("<br>" + attrNames[j] + " = ");
                        for (int k = 0; k < attr.length; k++)
                             response.write(attr[0].toString() + ", ");
              IUserAccount accounts[] = null;
              response.write("<br>*** LOGIN ACCOUNTS:");
              try {
                   accounts = user.getUserAccounts();
              } catch (UMException e) {
                   response.write("<br>Error getting accounts: "
                        + e.getLocalizedMessage());
              if (accounts != null) {
                   response.write("<br>Number of Login Accounts: " + accounts.length);
                   for (int i = 0; i < accounts.length; i++) {
                        response.write(
                             "<br>** Login ID #"    + i
                                  + ": LogonUID="    + accounts<i>.getLogonUid()
                                  + ", AssignedUID=" + accounts<i>.getAssignedUserID());
                        response.write(
                             "<br>Last Login: "
                                  + accounts<i>.getLastSuccessfulLogonDate().toString());
                        response.write(
                             "<br># Logins: " + accounts<i>.getSuccessfulLogonCounts());
              String myGroups[] = null;
              response.write("<br>My Groups:" );
              myGroups = user.getAttribute("com.sap.security.core.usermanagement",
                        "lmgroup");
              if (myGroups != null)
                   response.write(myGroups[0]);
              else
                   response.write("(none)");
              response.write("<hr>**** Roles: <br>");
              IRole superRole = null;
              try {
                   superRole = getSingleRole("super_admin_role",false);
                   if (user.isMemberOfRole(superRole.getUniqueID(),true))
                        response.write (user.getFirstName() + " IS a super admin");
                   else
                        response.write(user.getFirstName() + " IS NOT a super admin");
              } catch (UMException e) {
                   response.write("Error obtaining role: " + e.getLocalizedMessage());
              Iterator rit = user.getRoles(true);
              response.write("<br>**** ROLE INFORMATION:");
              if (rit.hasNext()) {
                   IRoleFactory rfact = UMFactory.getRoleFactory();
                   while (rit.hasNext()) {
                        String roleName = (String) rit.next();
                        IRole role = null;
                        try {
                             role = rfact.getRole(roleName);
                             response.write("<br>Role:" + roleName 
                                  + "<br>  Display Name:"    + role.getDisplayName()
                                  + "<br>  ID: " + role.getUniqueID()
                                  + "<br>  Uniquename: " + role.getUniqueName()
                                  + "<br>  Description: " + role.getDescription());
                        } catch (UMException e1) {
                                  response.write("error: " + e1.getLocalizedMessage());
         IRole getSingleRole(String searchStr, boolean fuzzy) throws UMException {
              IRoleFactory rfact = UMFactory.getRoleFactory();
              IRoleSearchFilter isf = rfact.getRoleSearchFilter();
              if (fuzzy) {
                   isf.setDisplayName("" + searchStr + "",
                        ISearchAttribute.LIKE_OPERATOR,    false);
         } else {
                   isf.setDisplayName(searchStr ,
                        ISearchAttribute.EQUALS_OPERATOR,false);
              ISearchResult sr = rfact.searchRoles(isf);
              if (sr.size() == 0)
                   throw new UMException("Role: " + searchStr + " not found");
              if (sr.size() == 1)
                   return rfact.getRole((String) sr.next());
              else
                   throw new UMException(
                        "Role: "
                             + searchStr
                             + " not unique (found "
                             + sr.size()
                             + " matches)");
         IGroup getSingleGroup(String searchStr, boolean fuzzy) throws UMException {
              IGroupFactory gFact = UMFactory.getGroupFactory();
              IGroupSearchFilter gsf = gFact.getGroupSearchFilter();
              if (fuzzy) {
                   gsf.setDisplayName("" + searchStr + "",
                        ISearchAttribute.LIKE_OPERATOR,false);
              } else {
                   gsf.setDisplayName(searchStr,
                        ISearchAttribute.EQUALS_OPERATOR,false);           
              ISearchResult sr = gFact.searchGroups(gsf);
         if (sr.size() == 0)
                   throw new UMException("Role: " + searchStr + " not found");
              if (sr.size() == 1)
                   return gFact.getGroup((String) sr.next());
              else
                   throw new UMException("Group: "+ searchStr +
                                  " not unique (found "+ sr.size()+ " matches)");
    JagadishBabu

  • Rename User in SAP Netweaver - how to get user-dependent object transferred

    Hello group
    Recently the rules for coding of Userids within our company changed.
    As a consequence we would have to rename all SAP userids according to the new rules.
    However, user rename in SU01 doesn't take along the user-dependent entries in several SAP tables where for instance user-specific variants are stored.
    Is there a decent solution to this ?
    Jo

    Hello Jo,
    The closest thing I can think of is the SAP System Landscape Optimization services. I have only ever once been involved in Chart of Account conversions with them about 5 years back, but that was successfull
    Here is a thread which asked the same question and some more information for you:
    Rename accounts in SAP R/3 
    (Note that there has been an upgrade of the forum software since this thread. Frank did not mean to -strike out- the contact details...)....
    Cheers,
    Julius

  • Change user information,

    Hi
    I need to change user information (for example name and email). I find only class and methods that give user info, but nothing to set this informations.
    Thanks
    Andrea

    Hello Andrea,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/user management engine - version 4.0/com/sap/security/api/iuserfactory.html
    //Get a user object which can be modified.
    IUserMaint getMutableUser(java.lang.String uniqueId)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/user management engine - version 4.0/com/sap/security/api/iusermaint.html
    //Sets the user's first name.
    boolean setFirstName(java.lang.String firstname)
    //Sets the user's default email address.
    boolean setEmail(java.lang.String email)
    Don`t forget to call IUserMaint.commit() method to commit changes.
    Best regards, Maksim Rashchynski.

Maybe you are looking for