I am looking for way to revoke a Security Role for a User in Dynamics365 FO for a specific organization only. I have tried following options:
1. https://<FO-BASE-URL>/data/SecurityUserRoleOrganizations?$filter=UserId eq 'U!' and SecurityRoleIdentifier eq 'BUDGETBUDGETCLERK' and OrganizationType eq 'LegalEntity' and OrganizationId eq 'dat'
2. https://<FO-BASE-URL>/SecurityUserRoleOrganizations(UserId='U!', SecurityRoleIdentifier='BUDGETBUDGETCLERK', OrganizationId='DAT')
None of the above URLs are working. instead, I am getting "No route data was found for this request." message. HTTP response code is 404.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please Note: To remove the Role altogether (for all the organizations) following URL is working.
https://<FO-BASE-URL>/data/SecurityUserRoles(UserId='U1', SecurityRoleIdentifier='LEDGERACCOUNTANT' )
But my requirement is to remove the role from a specific organization.