Hi Team, Could you please help me with this? I’m t...
# ask-a-descoper
m
Hi Team, Could you please help me with this? I’m trying to configure a user account that does not belong to any tenant but still has a role assigned. The goal is to have this user act as a global account capable of impersonating users across all tenants.
a
You can assign the
Impersonate
permission to that user at the project level only. Please follow this Doc
m
@Atharva Joshi So even if my user is a part of a tenant, and project level Impersonate permission is assigned to it, i will be able to impersonate any user of any tenant? Is this correct?
a
Yes, I dont think that should matter
m
Hi @Atharva Joshi I’m encountering the following error while attempting to impersonate a user:
{'status_code': 401, 'error_type': 'server error', 'error_message': '{"errorCodror', 'error_message': '{"errorCode":"E064008","errorDescription":"Invalid permission"}'}
Scenario: • User A: Belongs to Tenant A • User B: Belongs to Tenant B • Note: User A has project-level impersonate permission. Could you please help me understand why this error occurs and how to resolve it?
a
Are you sure UserA is authenticated?
m
Yes. One thing that the JWT template i am using is the Current tenant, no tenant reference", Can this be the reason?
a
You can also check the Audit Trail page for "Impersonate" to see if there are anymore details about the failed API request
One thing that the JWT template i am using is the Current tenant, no tenant reference"
sorry didnt get you?
m
The JWT Templates have these 3 options: ANd i am using the second option which does not include the project level permissions.
a
I see Yes this might be the reason. Can you switch to the default template?
m
@Atharva Joshi Switching to the Default template works! Thanks!!
a
perfect! 🙌