Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

updateEnterpriseRoleRequest API won't add entitlements to a role

mblakey
New Contributor II
New Contributor II

Got a good head scratcher for the Saviynt guru's on here!

Using the updateEnterpriseRoleRequest API I'm only able to update the CP attributes on a role and not the entitlements even though I'm using the formatting described in the postman documentation?

I noticed this line in the postman doc, does this mean that this api won't update role entitlements? Should I be using a different one? We have auto approve turned on. If that's the case why is cp36 still updating?

Note : If config for auto approve is ON then request will not be created

 
Attached is the script we're using, first row is an example use. Authenticates fine and does the CP update just fine, but won't process the entitlement update. Here's the log message in Saviynt's log:

"2024-07-11T12:09:02.664+00:00","ecm","ws.Restfulv5Controller","http-nio-8080-exec-27-t8z2m","DEBUG","Default max limit is set to 50"
"2024-07-11T12:09:02.664+00:00","ecm","ws.Restfulv5Controller","http-nio-8080-exec-27-t8z2m","DEBUG","Inside updateEnterpriseRoleRequest Webservice"
"2024-07-11T12:09:02.664+00:00","ecm","ws.Restfulv5Controller","http-nio-8080-exec-27-t8z2m","DEBUG","Params are [controller:restfulv5, action:updateEnterpriseRoleRequest, entitlements:[[endpoint:AzureAD, entitlementType:AADGroup, entitlement_value:IAS_BTP_qa2_PS_SU_SP_MNT_IMP_XXXX, updateType:ADD]], role_name:TestRole, roletype:ENTERPRISE, customproperty36:cp36modified, requestor:mblakey, max:50]"
"2024-07-11T12:09:02.668+00:00","ecm","ws.Restfulv5Controller","http-nio-8080-exec-27-t8z2m","DEBUG","requestor found..."
"2024-07-11T12:09:02.709+00:00","ecm","ws.Restfulv5Controller","http-nio-8080-exec-27-t8z2m","DEBUG","Role Updated Successfully"
2 REPLIES 2

naveenss
All-Star
All-Star

Hi @mblakey this is working fine in 24.4. I'm able to add entitlements to the enterprise role. 

Please see the working request payload below. 

{  
   "roletype":"ENTERPRISE",
   "role_name":"SampleRole",
   "requestor":"admin",
   "customproperty36":"cp36modified",
   "endpointname":"sample endpoint",
   "entitlements" : [
   		{
   	"entitlement_value":"SampleEnt1",
   	"entitlementType" : "EntType",
   	"endpoint" : "Sample",
   	"updateType" : "ADD"
   	},
   		{
   	"entitlement_value":"SampleEnt2",
   	"entitlementType" : "EntType",
   	"endpoint" : "Sample",
   	"updateType" : "ADD"
   	}
   ]
}

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

rushikeshvartak
All-Star
All-Star

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.