Skip to Content

Lock users of a portal from other portal using UME API's

Dear All,

We have requirement to lock users in no. of portal systems from other portal system where my application would deploy .

For ex.

There are 5 portals (A,B,C,D,E) in my landscape and my application is deployed on Portal A , now my requirement is , I want to lock some users of portal B,C,D,E using UME API's.

Kindly let me know anything else needed from my side. Thanks

Mayank Jain

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 15, 2016 at 12:20 PM

    using the ume api and expose it as web service

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2016 at 07:30 AM

    Hi Mayank,

    you can lock user accounts using UME APIs. Below is the reference code for the same. To Lock set of users you must write a condition accordingly.

    IUserAccount acc = UMFactory.getUserAccountFactory().getUserAccountByLogonID("user id here");

    acc.setLocked(true,IUserAccount.Locked_By_Admin);

    acc.save();

    acc.commit();

    Regards,

    Bhaskar

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks Bhaskar for your reply , But I need to lock users of other portal as well from the one where I have deployed my application. Means lock Portal A users from Portal B application.


      We are doing same in SAP system via BAPI thru RFC call but need to do same in portal. Thanks

      Regards,

      Mayank Jain