Problem
The relation between HCP and Location was not visible in the relations tab.
Troubleshooting
The issue appeared to be related to groups where the platform is unable to resolve the permission on the relations API. When checked with get relation using the URI, gave a 403
GET /<tenantId>/relations/0culySI
The user has 3 group roles:
"groups": [
"UAT2_DSL_US",
"UAT_DSL_US",
"DEV_DSL_US"
]
UAT_DSL_US group role has READ privilege (via ROLE_DSL_US role) which has access to HasAddress
{
"uri": "configuration/relationTypes/HasAddress",
"permissions": [
{
"role": "ROLE_ADMIN",
"access": [
"READ",
"UPDATE",
"CREATE",
"DELETE",
"MERGE",
"INITIATE_CHANGE_REQUEST",
"ACCEPT_CHANGE_REQUEST"
]
},
{
"role": "ROLE_DSL_DRG_US",
"filter": "equals(attributes.Country, 'US') or equals(attributes.Country, 'USA')",
"access": [
"READ",
"UPDATE",
"CREATE",
"DELETE"
]
},
{
"role": "ROLE_DSL_US",
"filter": "equals(attributes.Country, 'US') or equals(attributes.Country, 'USA')",
"access": [
"READ",
"UPDATE",
"CREATE",
"DELETE",
"MERGE",
"INITIATE_CHANGE_REQUEST",
"ACCEPT_CHANGE_REQUEST"
]
},
{
"role": "ROLE_DS_DRG_US",
"filter": "equals(attributes.Country, 'US') or equals(attributes.Country, 'USA')",
"access": [
"READ"
]
},
{
"role": "ROLE_DS_US",
"filter": "equals(attributes.Country, 'US') or equals(attributes.Country, 'USA')",
"access": [
"READ",
"CREATE",
"INITIATE_CHANGE_REQUEST"
]
},
{
"role": "ROLE_LEXI",
"filter": "equals(attributes.RequiresAttention, 'false') or missing(attributes.RequiresAttention)",
"access": [
"READ",
"UPDATE",
"DELETE",
"CREATE",
"MERGE",
"INITIATE_CHANGE_REQUEST",
"ACCEPT_CHANGE_REQUEST"
]
},
{
"role": "ROLE_OV_UCI",
"access": [
"READ",
"UPDATE",
"CREATE",
"MERGE",
"INITIATE_CHANGE_REQUEST",
"ACCEPT_CHANGE_REQUEST"
]
},
{
"role": "ROLE_RO_US",
"filter": "equals(attributes.Country, 'US') or equals(attributes.Country, 'USA')",
"access": [
"READ"
]
}
]
}
Solution
A “Country” attribute does not exist in hasAddress relationship. It was only present for the Location entity. The HasAddress relationType only had "configuration/entityTypes/Location/attributes/Country" defined as a referencedAttributeURIs.
Comments
Please sign in to leave a comment.