and more in a single search tool across platforms. Read the announcement here. |
12/07/2023 02:51 AM - edited 12/07/2023 02:53 AM
Hello everyone,
We are trying to fetch entitlements to account mapping via rest connector using oracle SCIM api. I am able to get the correct mappings of entitlements to account in customproperty31 of the account but still there are no roles which are visible under "Entitlement Hierarchy" tab of that account. Please find the attached Json and the response from the api. We are getting entitlements associated with the accounts in the same call-->
Response from the get all user call-->
{
"totalResults": 485047,
"itemsPerPage": 500,
"startIndex": 1,
"Resources": [
{
"id": "55BE3577A29CB7FEE0503B01453",
"meta": {
"location": "URL",
"resourceType": "User",
"created": "2017-08-04 04:27:21.000",
"lastModified": "2023-11-30 05:15:02.363"
},
"userName": "test@123",
"name": {
"familyName": "Test1",
"givenName": "12"
},
"displayName": "test@123",
"active": true,
"emails": [
{
"primary": true,
"type": "W",
"value": "test@123"
}
],
"roles": [
{
"id": "5945853BD9F54C16940E2256DD3E",
"displayName": "Custom Objects Administration",
"description": "This role is granted privileges to custom objects.",
"value": "ORA_CRM_EXTN"
},
{
"id": "4D0E03B8FA904FC89C2FB58BD68A",
"displayName": "Pricing Manager",
"description": "Manages and approves pricing entities. .",
"value": "ORA_QP_PRICING_MANAGER"
},
{
"id": "C7DA2543D01B4A0CC27BDBA7FFF",
"displayName": "Advanced Access Controls Analyst",
"description": "Individual responsible for managing and auditing enterprise advanced access controls.",
"value": "ORA_GTG_APPLICATION_ACCESS_AUDITOR"
}
],
"urn:scim:schemas:extension:test:1.0:faUser": {
"userCategory": "DEFAULT"
}
}
]
}
Json-->
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": [
"true"
],
"deleteLinks": true,
"accountThresholdValue": 100000,
"correlateInactiveAccounts": true,
"inactivateAccountsNotInFile": true
},
"includeExistingInActiveAccounts": true,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://test.oraclecloud.com/hcmRestApi/scim/Users",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "accountID",
"statusConfig": {
"active": "true",
"inactive": "false"
},
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "userName~#~char",
"customproperty2": "emails.value~#~char",
"status": "active~#~char",
"customproperty11": "active~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
}
}
},
"acctEntMappings": {
"Role": {
"listPath": "roles",
"idPath": "id",
"keyField": "entitlementID",
"importAsEntitlement": false
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Role": {
"entTypeOrder": 1,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://test.oraclecloud.com/hcmRestApi/scim/Roles",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "name~#~char",
"displayname": "displayName~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}
12/10/2023 10:35 PM
Hello @shubhangsinha_,
Can you share the debug log.
Thanks.
12/11/2023 07:37 PM
share cp31 value of account