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

REST - account to entitlement mapping not working

Gurukrishna96
New Contributor
New Contributor

Hi Team,

For an application, we are able to import entitlements and accounts however account to entitlement mapping is not working for us

Below is our API response - 

{
"users": [
{
"id": "xxxxxxxxxxxx",
"email": "xxxxxxxxx",
"roles": ["labsmanager"],
"firstName": "xxxx",
"lastName": "xxxxx"
},
{
"id": "xxxxxxxxx",
"email": "xxxxxxx",
"roles": ["labsadmin","admin","sonicstudiobetatester"
],
"firstName": "xxx",
"lastName": "xxxx"
},

}

Following is the json that we are using, please suggest any changes that need to be made - 

{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call0": {
"callOrder": 1,
"stageNumber": 1,
"http": {
"httpMethod": "GET",
"url": "https://studio.dev.api.discomax.com/api/identity/v0/users",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
}
},
"listField": "users",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "email~#~char",
"customproperty1": "firstName~#~char",
"customproperty2": "lastName~#~char",
"customproperty3": "email~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"page": {
"pageSizeParam": "limit",
"pageSize": 50,
"pageRecordCount": "pageSize",
"pageNumberParam": "page",
"totalCountPath": "completeResponseMap.meta.totalItems",
"firstPageNumber": 0
}
}
}
},
"acctEntMappings": {
"roles": {
"importAsEntitlement": true,
"listPath": "",
"idPath": "roles",
"keyField": "entitlementID"
}
}
},
"entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"roles": {
"entTypeOrder": 1,
"call": {
"call1": {
"callOrder": 1,
"stageNumber": 1,
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "https://studio.dev.api.discomax.com/api/identity/v0/users",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "users",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "roles[0]~#~char",
"entitlement_value": "roles[0]~#~char"
},
"pagination": {
"page": {
"pageSizeParam": "limit",
"pageSize": 50,
"pageRecordCount": "pageSize",
"pageNumberParam": "page",
"totalCountPath": "completeResponseMap.meta.totalItems",
"firstPageNumber": 0
}
}
}
}
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}

 

 

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Refer CP31 Scripting

https://forums.saviynt.com/t5/identity-governance/issue-importing-roles-from-coupa-into-saviynt/m-p/... 


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

NM
Honored Contributor II
Honored Contributor II

Hi @Gurukrishna96 , try this

acctEntMappings": {

"roles": {

"importAsEntitlement": true,

"listPath": "roles",

"idPath": "",

"keyField": "entitlementID"

}

}