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

Getting error while D365 Account provisioning process

Mosyafii
New Contributor II
New Contributor II

Hi, 

I'm getting error while provision the D365 Account from Savyint. According to the log here is the error as follows: 

"2024-05-21T11:00:02.688+00:00","ecm-worker","d365.D365ProvisioningService","quartzScheduler_Worker-9-z9dpp","ERROR","*** Error in assign access = AddAccessJSON cannot be null"

The AddAccessJSON field is not empty and we define the JSON code following the Savyint recommendation which articulated in this doc: https://docs.saviyntcloud.com/bundle/Dynamics365-v24x/page/Content/Understanding-the-Integration-bet...

Even, we modified the JSON code with more proper JSON formating. Here is the AddAccessJSON code as follows:

{ "call": [ { "name": "Roles", "connection": "userAuth", "url": "https://operations.dynamics.com/Data/SecurityUserRoles", "httpMethod": "POST", "httpParams": "{\"UserId\":\"${account.accountID}\",\"SecurityRoleIdentifier\":\"${entitlementValue.entitlementID}\",\"SecurityRoleName\":\"${entitlementValue.entitlement_value}\",\"AssignmentStatus\": \"Enabled\",\"AssignmentMode\": \"Manual\",\"UserLicenseType\": \"Activity\"}", "httpHeaders": { "Authorization": "${access_token}", "Accept": "application/json", "OData-Version": "4.0" }, "httpContentType": "application/json", "unsuccessResponses": { "statusCode": [ 400, 401 ] }, "successResponses": { "statusCode": [ 200, 201, 204 ] } }, { "name": "Organizations", "connection": "userAuth", "url": "https://operations.dynamics.com/Data/SecurityUserRoleOrganizations", "httpMethod": "POST", "httpParams": "{\"UserId\":\"${account.accountID}\",\"SecurityRoleIdentifier\":\"${requestAccessAttributes.SecurityRoleIdentifier}\",\"OrganizationType\": \"${entitlementValue.entclass}\",\"OrganizationId\": \"${entitlementValue.customproperty7}\",\"OperatingUnitType\": \"${entitlementValue.customproperty1}\"}", "httpHeaders": { "Authorization": "${access_token}", "Accept": "application/json", "OData-Version": "4.0" }, "httpContentType": "application/json", "unsuccessResponses": { "statusCode": [ 400, 401 ] }, "successResponses": { "statusCode": [ 200, 201, 204 ] } } ] }


What possible cause of the error? 

 

Thank you.

Regards,

Syafii

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Share connection Add Access Screenshot & Confirm Entitlement Type name is Role ?


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

Hi @rushikeshvartak , 

Please find it attached. Thanks. 

Regards,

Syafii