SAP Knowledge Base Article - Public

2807942 - How to add users to a Static Group via ODATA API Call?

Symptom

How to add users to a Static Group via ODATA API Call?

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

Successfactors

Resolution

Step 1: Use KBA 2807876 - How to fetch groupID field for Static Groups via ODATA API Entity DynamicGroup? in order to find the groupId of the static group to which you want to add the users

Step 2: Use the below API GET Call to add the users to the static group:

https://apisalesdemo4.successfactors.com/odata/v2/updateStaticGroup?groupId=5976L&action='add'&userIds='cgrant1'

Here groupId should be the ID of the static group received in Step 1, userIds should contain the user Ids of the users that you want to add to the Static Group.

Step 3: Response code 1 for the above query indicates successfull addition of the user to the static group.

See Also

2807876 - How to fetch groupID field for Static Groups via ODATA API Entity DynamicGroup? 

Keywords

static group, add member to static group, dynmaic grioup, odata api entity , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , How To

Product

SAP SuccessFactors HCM Core 1902