SAP Knowledge Base Article - Public

3092730 - How to modify a user or group using the SAC API's when you don't know the associate roles in SAP Analytics Cloud (SAC)

Symptom

When modifying a user or group in SAC, it was previously necessary to know the roles assigned to the user/group when performing a PUT call to update the user/group.

Environment

  • SAP Analytics Cloud (Enterprise) 2021.14.7

Cause

When updating or modifying a user/group it was previously necessary to pass in all the roles for that user/group.

Resolution

There is now a new header which can be passed which will allow you to modify the user/group and retain any existing roles for them.  The new header is:

x-ignore-roles-if-missing

New Behavior:

Action Payload Roles Existing Roles Set "x-ignore-roles-if-missing" Header Expected User Roles
Update User/Group with no roles "roles": [PROFILE:sap.epm:BI_Content_Creator"] TRUE "roles": ["PROFILE:sap.epm:BI_Content_Creator"]
Update User/Group with empty roles "roles": [] "roles": [PROFILE:sap.epm:BI_Content_Creator"] TRUE "roles": []
Update User/Group with new roles "roles": ["PROFILE:sap.epm:Admin"] "roles": [PROFILE:sap.epm:BI_Content_Creator"] TRUE "roles": ["PROFILE:sap.epm:Admin"]
Update User/Group with no roles "roles": [PROFILE:sap.epm:BI_Content_Creator"] FALSE "roles": []
Update User/Group with empty roles "roles": [] "roles": [PROFILE:sap.epm:BI_Content_Creator"] FALSE "roles": []
Update User/Group with new roles "roles": ["PROFILE:sap.epm:Admin"] "roles": [PROFILE:sap.epm:BI_Content_Creator"] FALSE "roles": ["PROFILE:sap.epm:Admin"]

Notes:

  1. It is still necessary to pass in all user members of the group when updating the group
  2. The INFRA_SCIM_IGNORE_ROLES toggle needs to be set on the tenant - however all tenants should now have this enabled by default
  3. If the  x-ignore-roles-if-missing header is set to true, you cannot update the "isConcurrent" value of a user as part of the update call.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, sap analyst cloud, connected, failure, stopped, x-ignore-roles-if-missing, SCIM, API, Users , KBA , LOD-ANA-DES , Story Design & Visualizations , Problem

Product

SAP Analytics Cloud 1.0