This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
[$125] Project U-Bahn ES Processor | Import groups for a new user #23
Closed
Description
When the external profile for a user is created
- Get the member id of the user. This will be present in the same message as the external profile under
externalId
attribute - Make an api call to GET
/v5/groups?memberId={externaldId}
to get the groups of the user. This returns paginated data so we need to ensure that we fetch all the groups. - Update the user's
groups
property (the property is a configuration actually) with the group id and the group name attributes retrieved in earlier step- example in elasticsearch. - Ensure there are unique groups
Note: For making the groups api call, you would need to use m2m tokens, which means you need to first generate them. Example