- Joined
- Mar 28, 2020
- Messages
- 9
- Reaction score
- 8
I'm working on a tool to automatically provision a new tenant in multi-company/multi-tenant mode.
I've created my service principals as System Owner on the DEFAULT group and it's successfully authenticating, but when I try to retrieve the departments (/xapi/v1/Groups) list I get a "403 Forbidden" error.
I'm pretty confident it's related to trying to access the departments using the service principal because I'm able to retrieve them when:
1. I connect to a PBX without multi-company mode enabled.
2. If I grab the bearer token from my web browser for the MT system logged in as a System Owner it works fine.
Am I creating my service principal incorrectly, accessing it incorrectly or is it a limitation of the XAPI on multi-tenant. And if the latter, why?
I've created my service principals as System Owner on the DEFAULT group and it's successfully authenticating, but when I try to retrieve the departments (/xapi/v1/Groups) list I get a "403 Forbidden" error.
I'm pretty confident it's related to trying to access the departments using the service principal because I'm able to retrieve them when:
1. I connect to a PBX without multi-company mode enabled.
2. If I grab the bearer token from my web browser for the MT system logged in as a System Owner it works fine.
Am I creating my service principal incorrectly, accessing it incorrectly or is it a limitation of the XAPI on multi-tenant. And if the latter, why?
