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

Delete User Group - using UME API's

Hello All,

I want to delete some group(s) from particular user using UME APIu2019s.

Note: Not Default Groups like Everyone and Authenticated Users Groups

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 09:25 AM

    Hi DEVASARATHY PANDI,

    Use below code u can delete the group from the portal

    IGroupFactory  gf=UMFactory.getGroupFactory();
    gf.deleteGroup("unique id of the group") ;
    

    Regards,

    P.Manivannan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 06:50 PM

    Have you checked the UME APIs? You might want to search for IUserMaint.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 05:39 AM

    Hi

    You must make use of UME API

    IUserMaint user = UMFactory.getUserFactory().newUser("AAA");

    user.setFirstName("BBB");

    user.setLastName("CCC");

    user.save();

    user.commit();

    //Assigning Group

    String uniqueIdOfGroup = UMFactory.getGroupFactory().getGroupByUniqueName("GROUP_NAME").getUniqueID();

    UMFactory.getGroupFactory().addUserToGroup(user.getUniqueID(), uniqueIdOfGroup);

    IUserAccount uacc = UMFactory.getUserAccountFactory().newUserAccount("AAA", user.getUniqueID());

    uacc.setPassword("pass1");

    uacc.setPasswordChangeRequired(false);

    uacc.save();

    uacc.commit();

    Hope it helps

    for details check this link

    Does anyone know how to create users and add roles programatically?

    IUserMaint API

    http://help.sap.com/javadocs/nwce/current/se/SP5/com/sap/security/api/IUserMaint.html

    Thanks

    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.