SAP Knowledge Base Article - Public

2807942 - How to add users to a Static Group - SuccessFactors OData API

Symptom

How to add users to a Static Group via OData API call?

Environment

  • SAP SuccessFactors HCM Suite
    • OData API

Resolution

Step 1: Fetch the groupId of the static group as explained in KBA 2807876 - How to fetch "groupId" field of Static Groups using SFOData.DynamicGroup entity?

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 is a list of users to be added to the static group.

Step 3: Response code 1 for the above query indicates successful addition of the user(s) to the static group.

See Also

Keywords

static group, add member to static group, dynamic group, odata api entity, function import , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , How To

Product

SAP SuccessFactors HCM Suite all versions