SAP Knowledge Base Article - Public

3346380 - How to get the assigned business users roles with PDI

Symptom

You would like to know how to fetch the business roles of a business user with ABSL scripts from your custom solution within SAP Cloud Applications Studio.

Environment

  • SAP Cloud for Customer
  • SAP Business ByDesign
  • SAP Cloud Applications Studio

Resolution

You can make use of GetAssignedBusinessRoles function from Context reuse library.

Sample script:
var assignedRolesCollection: Collectionof IdentityBusinessRoleID;
var assignedRoles:IdentityBusinessRoles;
assignedRoles = Context.GetAssignedBusinessRoles();
assignedRolesCollection = assignedRoles.BusinessRoles;

See Also

Please refer to SAP Cloud Applications Studio help portal:

Context (Reuse Library)

Keywords

PDI, SDK, script, business, role, user, logged, fetch, retrieve, query, GetAssignedBusinessRoles , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions