SAP Knowledge Base Article - Public

2775727 - How to fetch the Roles assigned to a User using OData API: Documentation Link

Symptom

How to fetch the Roles assigned to a User using OData API

 

Environment

  • SAP SuccessFactors HXM Suite
  • OData API

 

Resolution

To retrieve the roles assigned to a specific User ID, the getUserRolesByUserId function import can be used:

  • Example: /odata/v2/getUserRolesByUserId?userId='sfadmin'

 

For further information on all available RBP related function imports, please refer to:

 

Keywords

OData API, User roles, permissions, get user role, RBPRole , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-API , API & Adhoc API Framework , How To

Product

SAP SuccessFactors HCM suite all versions