Accessing the user management API programmatically

I am looking for the officially supported method that could be used to access the user management API via "curl" for CRX:
There is a user management API described here:
http://sling.apache.org/site/managing-users-and-groups-jackrabbitusermanager.html
However, executing a command on CRX 2.2 such as:
curl -u:admin:admin http://localhost:7402/system/userManager/user.tidy.1.json
Only returns a message indicating that the contents have been redirected (without providing another URL).
Using the Content Explorer in CRX shows the list of users at: /home/users but I am not sure if a curl command could access the user list via that URL.
Any pointers on how this could be done are appreciated.  This is for a partner.
Regards,
Blair

I am a co-worker of MorrellJ.  I am trying to do a change password request using the Jackrabbit User Manager with the REST URL /system/userManager/user/<username>.changePassword.json.  The problem I am having is that this request requires an oldPwd form param in the request.  The issue is that when I am trying to do this request it is in response to the user selecting "Forgot Password" so our logic has created a random password which we then email to the user so they can use that the next time they want to login.  We need to change that user's password in CRX so they can log in using it next time.  Since they haven't logged in there is no session, NOT the problem.  THE PROBLEMS, I don't know 1. how to use the userManager to get that user's old password, since /system/userManager/user/<username>.json doesn't appear to return the password and 2. if I could get the old password it most certainly will be encoded, some how, so I will need some decoding algorithm to pass it through in order to get the actual password to set as the oldPwd form param to my change password request.  Please let me know if you require any further explanation.  Any assistance would be greatly appreciated.  Thank you, in advance, for your assistance.
Sincerely,
Mike Sucena
[email protected]

Similar Messages

  • User management API/get all the users for a group

    Hi all,
    I'm trying to get all the users and their associated groups with the user management API. The method DirectoryManagerServiceClient.findGroupMembers(GroupMembershipSearchFilter)
    returns all the users, great, but not the associated groups.
    TO get the users i use the oid of a "super group" and this "super group" contains severals groups. It's the information about these groups i need.
    I have read in the documentation of Principal Object that a search could omit
    the group informations for efficiency. How can i bypass this limitation?
    Thank you in advance for your help,
    Philippe Vandenhove

    Hi Philippe
    Our CreateUser component will allow you to create local users and groups.
    http://avoka.dnsalias.com/confluence/display/Public/Create+User+Create+Group
    LookupGroup takes a group name or id, and returns a list of all members. I'm pretty sure it recursively evaluates contained groups, but you'll need to check. If it doesn't, log a bug to support-at-avoka.com.
    http://avoka.dnsalias.com/confluence/display/Public/Lookup+DSC
    Download at:
    vhttp://www.avoka.com/apps/checkcookie?qpac=y&qpac_code=avokaESComponents&location=%2Fapps %2Fqpacdownload
    Howard

  • User management API

    Hello,
    could you please tell me how I can create Groups and add users to, within EP, using the User management API ?
    do you have a javadoc on the User management API ?
    best regards,

    Here's sample code for adding users to a group:
    // assign individual user to a Group
    String userid = "<unique-id of user>";
    String groupid = "<unique-id of group>";
    IGroupFactory grpFact = UMFactory.getGroupFactory();
    // add the user
    grpFact.addUserToGroup(userid, groupid);
    // get rid of the user
    grpFact.removeUserFromGroup(userid,groupid);
    Note: the unique IDs are obtained by searching for the user or group. You can also use the appropriate factory (e.g. UserFactory)
    The IDs look something like:
    GRUP.CORP_LDAP_2.cn=developers,ou=groups,dc=sap,dc=corp
    or
    USER.CORP_LDAP.uid=i802895,ou=people,dc=sap,dc=corp
    So:
    String uid = "i802895";
    IUser user = UMFactory.getUserFactory().getUserByLogonID(uid);
    String uniqID = user.getUniqueID();

  • Database Studio 7.9.08.09 -  Could not access to user management; Deleting old settings and reinstallation did not bring a change -- database studio deinstallation cannot be performed anymore

    Hi Community,
    for a few months I have been struggling with a  SAP Max DB database Studio issue and finally, I had to give up the idea of being able to fix this on my own. I am desperately seeking for help and I hope that you may be able to give me a hint, advice or even a solution.
    This is what happened:
    I used to run Windows 7 on 32bit. I also had Database Studio installed - which was running fine then.
    After a harware upgrade, I am running now Windows 7 on a 64 bit System. All my files from my local disk (C:\) have been restored and copied onto my new system.
    I reinstalled Database Studio Version 7.9.08.09 onto my new System.  But on the first try to start the program I received the error that said "Could not Access to user Management.See Window -> Show View-> Event Log Viewer for more Details."
    However the Event Log Viewer was empty.
    After searching the web for a solution, I followed the advice given in this community and deinstalled Database Studio and deleted the C.\Users\MyAccount\sdb folder manually.
    I reinstalled Database Studio and started it as Administrator.
    However, the error is still appearing.
    And, what makes it even worse is : now I am not able to uninstall Database Studio anymore.
    When I run SAP MaxDB Installation Manager and select the instance of database Studio to be uninstallled I am receiving the error:
    "ERR: Unhandled Exception: Can't call method: "GenPackageList" on an undefined value at SDB/Install/Gui/Dialogs/SelectInstance.pm line 328"
    Any advice is highly appreciated.
    Thanks,
    Agnieszka

    Hello Yashwanth,
    thank you for your quick Response.
    Yes, I downloaded and installed the 64 bit Version of dbstudio.
    I downloaded and ran the following .exe file: maxdb-studio-win-64bit-x86_64-7_9_08_09.exe
    I am running the following Java-Version:
    Java Plug-in 1.6.0_45
    Using JRE version 1.6.0_45-b06 Java HotSpot(TM) Client VM
    I myself am not a SAP customer. However, the Company I am working for is a SAP customer.
    Can you explain in Detail, how to create a ticket with SAP?
    Thanks,
    Agnieszka

  • Access to user management  with j2ee_admin

    Hello, All
    I have a problem I'm trying to access  to user management ()  with  j2ee_admin user, but when I log on with this users  in the  screen don't shown anything, only the fiels of usuername and password are cleaned and I enter other password in the screen, I got this message  on the screen: User authentication failed . However I log on in the visual administrator with j2ee_admin and the same password nd the connection is succesfull.
    We have enabled the sap* user but  it did work.
    Any suggestions for this problem?
    thanks a lot
    Danny

    HI  Joao
    we found  that one certificate  there isn`t  in the backend, this  certificate was created again then  this certificate was uploaded and  the problem  was solved
    You could check the certificates in your backend system.
    I hope this information helps you
    Danny

  • SAPJSF user cannot log-on to the User Management Engine.

    We have a newly installed PI 7.0 system.
    SLDCHECK is succussful but if we go to the http://hostname:50100/sld - we are redirected to http://hostname:50100/logon/logonServlet?redirectURL=%2Fwebdynpro%2Fdispatcher%2Fsap.com%2Ftc%7Esld%7Ewd%7Emain%2FMain
    When we check the default.trc file, we see the error: User "SAPJSF" is the communication user for the connection between User Management Engine and the ABAP backend system SIDCLNTxyz. This user cannot log-on to the User Management Engine.
    The SAPJSF user is not locked in SU01.  This user is used by the JCO providers to connect to the gateway service.
    We opened Visual Administrator and navigated to Server0 -> Services -> UM Provider
    We changed the password  property at ume.r3.connection.master.passwd
    We then restarted the ABAP and J2EE engine.  But we still see this error.
    Any help to solve this issue is appreciate.
    Jay Malla

    Hi,
    Please, refer the link below. It says you cannot logon with SAPJSF user to J2EE engine for security reasons.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/225b42eeb66255e10000000a155106/frameset.htm
    Thanks
    R.Murali

  • Service for User Management API

    Hi,
    I want to use the User Management service in the portal component.I would like to include the classes present in the package  com.sapportals.portal.prt.service.usermanagement.IUserManagementService.
    To develop the Portal component , I am using Netweaver Developer studio. The problem is How can I add the service User Management service to my particular project ?
    Any ideas.
    Thanks,
    Vivek

    Hi Darell, hi Vivek,
    > request.getService
    ... is deprecated. Use <i>PortalRuntime.getRuntimeResources().getService</i>
    Vivek: To get this work, as usual you'll have to add com.sap.portal.usermanagement/lib/com.sap.portal.usermanagementapi.jar to your classpath as well as com.sap.portal.usermanagement to the SharingReference within portalapp.xml.
    Hope it helps
    Detlev
    PS: Vivek, seems you overlooked my helping answers at /thread/27173 [original link is broken] ...

  • There was an error retrieving the user management project list

    Hi All
    I created the application profile successfully and try to create the new application but the error message was displayed like " *There was an error retrieving the user management project list . please verify that a project exists"* i didn't give the domain name, i went admin login......
    Regards By
    Nagaraj

    Hi Varun,
    i started services correct order only, but i am using VMware
    Regards
    Nagarajan

  • Error message:  Error retreiving the user management project list

    The full message is: There was an error retreiving the user management project list. Please verify a project exists.
    This is from a new install, and I'm new to the product.
    If anyone can point me in the right direction it would be much appreciated.
    Thank you
    Rod

    It is normal, I encountered this error during planning aplication deployment from BPMA. There is a "cosmetic" bug that exception not catched and drops to log.

  • How to access the User's login portal ID?

    Hi all,
         How to access the user's portal login id??
       Thanks,
       Anirudh.

    Hi
    Try this
    String loginuser="";
         try{
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
              IUser user = wdUser.getSAPUser();
              if(user != null)
                   IUserAccount acct[] = user.getUserAccounts();
                   if(acct[0] != null)
                        loginuser = acct[0].getLogonUid();
                        strUserid = strUserid + acct[0].getLogonUid();
    }catch(Exception e){
    Kind Regards
    Mukesh

  • Accessing the Users Library in Time Machine?

    To access the User Library in ML you hold down the options key and click the Go menu.
    I want to access my Snow Leopard User Library stored on my Time Machine.
    How do I do it?

    When I opened TM there was no Users Library.
    However, by opening the Finder I was able to navigate to the HD with TM on it and open the TM folder structure just like any other folder.
    I never realised you could access the contents of TM without actually opening it.

  • Unable to log into the user management administration web console

    Can someone tell how resolve my ablity to log into the user management administration web console? I can't log into SAP Netweaver Admin,  User managment, and Webdynpro content Administrator and Web Dynpro Consol. But able active j2ee engine sample? Is there some that I need activate to allow me log in? 
    http://localhost:50000/logon/logonServlet?redirectURL=%2Fuseradmin%2FuserAdminServlet%3FgotoDefaultPage%3D.

    Hi,
    I had this problem also. For me it worked to log on to the SLD and then I was able to log on to the other applications like Useradmin and NWA.
    The SLD is usually available at <a href="http://localhost:50000/sld">http://localhost:50000/sld</a>.
    Regards,
    Sebastian

  • Creating orders via the Order Management API

    Hi there,
    we are wanting to use the Order Management API (within Oracle 11.5.4) as a means of integrating with our B2B website. I am thinking of creating a Java class that will talk to the Order Management API - pass it a list of products (amongst other variables) - create an order, and then retun that order's details to the clients browser - via the Java class. So my questions are specifically...
    1) is this possible, and am i heading in the right direction?
    2) where would i find more documentation on the Order Management API - i only have 1 doco so far and it isnt too clear
    3) has anyone had any experience doing something similar, and if so - can you give me any examples, tips etc etc
    Please reply to [email protected]
    cheers,
    matt lemsing

    I've done it a couple of times. I hope you have some help, and I assume you'll have to use Customer (AR/CRM) APIs as well as the OM APIs. My suggestion is to make you java beans in small pieces, don't try to do it all in one class. As for displaying the order back to the screen, don't forget a view or SELECT statement can also be viewed as an API. Keep it simple, don't try to get tricky.

  • Please help, my Mac book pro,  starts but could not access the users, out just keeps spinning until it does a circle with a line across

    I was doing a check up with onyx and all of the sudden the computer got stucked. I turned it off and back on and nOw it starts but access the users and Just spins.  After a while,  It just shows a circle with a line across

    It says suid file system library cores has been modified and will not be repaired,  what can i do?

  • I can't access the Startup Manager

    I hit the power key, hear the 'chime,' and press the option key. I hold it down. Three minutes later, the screen is still black. I have successfully accessed the Startup Manager in the past with no issue. It simply won't happen, today. I have Snow Leopard and apparently Maverick installed - each on half of the hard drive. I had normally simply booted to Snow Leopard (which I need to run Final Cut Pro - not Final Cut X) and taken care of business. Since upgrading to Maverick from Lion, the computer has defaulted to booting into Maverick. I have used Startup Manager to boot into Snow Leopard. That simply won't happen today.

    I hit the power key, hear the 'chime,' and press the option key. I hold it down. After answering this question, I am going to try to restart after selecting the Startup Disk in System Preferences - hopefully, that will work.
    As for the Disk Utility - yup, both partitions show. One is Macintosh HD (with Maverick), the other is Macintosh HD SL (get it? SL for Snow Leopard :-D ) At any rate, even if the SL partition didn't show, shouldn't the Startup Manager open rather than the black screen? I help the option ket for a solid 5 minutes on the recent attempt with still no success...
    Please, don't take my snippy response as an attack to your question. I am simply frustrated with this situation and need a vent...

Maybe you are looking for

  • Photos on External Hard Drive, Catalog on Internal; New Computer

    I just got a new computer and want to move my Adobe PSE catalog over to the new internal hard drive. I don't know where to put it since Vista's directories look different than XPs. All of my photos are on an external hard drive, but my guess is that

  • CSS layout

    Hi A couple of embarrassingly basic questions but would appreciate help: 1. I'm using a CSS layout template and need to alter the position of a div border (to coincide with another border). How do you physically do this? Can't seem to "drag and drop"

  • Old iBook and dsl settings

    I have a very old iBook that I have not used for years.  I'd like to load updates, but dial-up would be way too slow.  I have a dsl modem, but do not know what the settings are for an ethernet connection, or, once the settings are changed, how to con

  • How to run tcl scripts with arguments on OMBPlus

    Hi, I am trying to deploy mappings from OMBPlus. I could do it by saving step by step commands to a tcl file and run it on OMBPlus as source e:\\mi\\test.tcl Contents of test.tcl is: ======================= OMBCONNECT owbdesigner/owbdesigner@humistst

  • How to create authority check

    how to create authority check and how to apply for kunnr field near at selection-screen for validating this field, i mean is there any tcode for it becoz when i click on pattern button it ask authority check objectname (der r some inbuilt object alre