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

Unable to fetch the Service Principle's Owner Information from the Azure AD through REST api

MahammedRaffi
New Contributor
New Contributor

Hi Team, 

we have a requirement to fetch the Azure SPN owner information from the azure ad, Here I am using REST connector to fetch the Owner details. To fetch the owner we need to pass the SPN's app id to get the owner details. I am using api call1 to fetch SPN's appId details and storing it in CP12 and the same CP12 values dynamically passing in api  call2, but I am not able to fetch the call2 response on account attributes in saviynt. 

Can we pass customproperty  value in importentacocunt JSONs? Does Saviynt support only accountName or ID ?

Here is my json data:

{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": [
"true"
]
},
"successResponses": {
"statusCode": [
200
]
},
"unsuccessResponses": null,
"includeExistingInActiveAccounts": true,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://graph.microsoft.com/v1.0/servicePrincipals?$select=id,accountEnabled,displayName,description...')",
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded",
"ConsistencyLevel": "eventual",
"Authorization": "${access_token}"
},
"httpMethod": "GET"
},
"listField": "value",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "displayName~#~char",
"displayName": "displayName~#~char",
"customproperty1": "id~#~char",
"customproperty2": "description~#~char",
"customproperty3": "servicePrincipalType~#~char",
"customproperty4": "createdDateTime~#~char",
"status": "accountEnabled~#~char",
"customproperty10": "accountEnabled~#~char",
"customproperty12": "appId~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"makeProcessingStatus": true,
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('@odata.nextLink')==null)? null : response?.completeResponseMap?.get('@odata.nextLink')}"
}
}
},
"call2": {
"callOrder": 1,
"stageNumber": 3,
"http": {
"url": "https://graph.microsoft.com/v1.0/servicePrincipals(appId='${account.customproperty12}')/owners",
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded",
"ConsistencyLevel": "eventual",
"Authorization": "${access_token}"
},
"httpMethod": "GET"
},
"inputParams": {
"dependentCall": true
},
"listField": "value",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"customproperty32": "mail~#~char"
}
}
}
}
}

 

2 REPLIES 2

nimitdave
Saviynt Employee
Saviynt Employee

MahammedRaffi
New Contributor
New Contributor

Hi @nimitdave , There was no luck, still its same issue. call2 response (CP32) didn't captured under Other Attributes.

Also, Accounts status updated as 'PROCESSING' under Endpoints Account section.

 

Thanks,

Rafi