Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Not able to provision dynamic attribute using REST API

KirtiGupta
New Contributor
New Contributor

Using code

 

httpParams:{"givenName":"${user.firstname}","surname":"${user.lastname}","mail":"${user.email}","extension_aeb9a5a25f784bd992690e2d1b34f548_countrycode":"${requestAccessAttributes.get('customproperty11')}","DisplayName":"${user.displayname}","extension_aeb9a5a25f784bd992690e2d1b34f548_employeeId":"${user.employeeid}","identities":[{"signInType":"emailAddress","issuer":"xeroxb2cdev.onmicrosoft.com","issuerAssignedId":"${user.email}"}],"passwordProfile": {"password": "****", "forceChangePasswordNextSignIn": false},"passwordPolicies":"DisablePasswordExpiration" }, httpHeaders:[Authorization:${access_token}, Content-Type:application/json], httpContentType:application/json, successResponses:[statusCode:[200, 201, 204, 205]]]]]

 

 

 

This extension_aeb9a5a25f784bd992690e2d1b34f548_countrycode":"${requestAccessAttributes.get('customproperty11')} is setting as null

Though in logs it is being calculated

tchDefaultAttributeValues
2023-02-10 12:02:23,758 [Thread-140] DEBUG services.SaviyntCommonUtilityService - Sql = Select epattr from Endpoint_attributes epattr where epattr.endpoints.id = :epid and epattr.requestType=1 and epattr.defaultvalue is not null and epattr.defaultvalue <> ''
2023-02-10 12:02:23,759 [Thread-140] DEBUG services.SaviyntCommonUtilityService - Endpoint Attrs = [com.saviynt.ecm.identitywarehouse.domain.Endpoint_attributes : 1263]
2023-02-10 12:02:23,799 [Thread-140] INFO services.SaviyntCommonUtilityService - defaultattrval = [XeroxCountryCode:CAN]

2 REPLIES 2

sk
All-Star
All-Star

Try below, Assuming customproperty11 is Dynamic Attribute name, If not replace it with Dynamic attribute name that you try to provision

${requestAccessAttributes.customproperty11}


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

rushikeshvartak
All-Star
All-Star
${requestAccessAttributes.get('ResourceOrganizationName')}

 ResourceOrganizationName - Should be dynamic attribute name 

if it does not work then try with account column


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.