I am integrating a system via web service, where a user can have the same permission, but in different companies:
During entitlement aggregation, the same permissions are returned, but when assigning this permission to the user, I need to define in which company he will gain this permission, for example:
- Permission A, company 1
- Permission B, company 2
…
I thought about creating different types of entitlement for each company, with entitlement type 1, 2 …
The problem is that when adding the permission to the user, I am not able to, in addition to passing the permission ID, also pass the company ID, even though this ID is mapped in the entitlement schema.
Is there a way to pass these 2 parameters(entitlemntId and companyId) in the add entitlement?