Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Latest commit

 

History

History
64 lines (42 loc) · 1.51 KB

update-group.md

File metadata and controls

64 lines (42 loc) · 1.51 KB

To update an Group you need to create an specific Group. For more details how an update Group has to look please see at the SCIM specification.

The classs UpdateGroup was created to make this process more easy and secure.

You can create an UpdateGroup with his builder like:

UpdateGroup updateGroup = new UpdateGroup.Builder()
                 //...
                .build();

If you are using the connector4java you can directly use this UpdateGroup object.

osiamConnector.updateGroup(group_id, updateGroup, accessToken);

In case you want to use the scim group directly you can call

Group group = updateUser.getScimConformUpdateGroup();

Single Attributes

The following actions can be done with single attributes

update an single attribute

updateGroupBuilder.updateDisplayName("newDisplayName")
        .updateExternalId("newExternalId");

delete an single attribute

updateGroupBuilder.deleteExternalId();

The main attribute displayName can't be deleted.

Members

The following actions can be done with Members

add a Member

updateGroupBuilder.addMember(user.getId());
updateGroupBuilder.addMember(group.getId());

delete all Members

updateGroupBuilder.deleteMembers()

delete a single Member

updateGroupBuilder.deleteMember(user.getId());
updateGroupBuilder.deleteMember(group.getId());