Hi All,
We have a scenario where an entitlement is a combination of 2 entitites:
- Role
- Product
API used to fetch this is : v1/users/{userID}/roles-products
API Output:
"items": [
{
"product": {
"id": "A",
"name": "Account"
},
"role": {
"id": 1,
"name": "Preparer"
}
},
{
"product": {
"id": "A",
"name": "Account"
},
"role": {
"id": 10,
"name": "CFO"
}
},
{
"product": {
"id": "A",
"name": "Account"
},
"role": {
"id": 14,
"name": "System Admin"
}
},
{
"product": {
"id": "D",
"name": "Journal Document"
},
"role": {
"id": 1,
"name": "Preparer"
}
}
How can we map this response to an identity as an entitlement in below format:
UserID : Product Name - Role Name
With creation of 2 entitlement types: Role and Module (i.e. Product), we see them as separate entitlement rows.