API Call to Grant Permissions to a Profile

Solved
EC
Enric Correa Yusa
mercadona001

Hi everyone,

We are currently automating the management of profile permissions, but we can’t seem to find an official API endpoint for this.

After reviewing how this is handled from the console, we noticed the following call, which appears to work:

https://${HOST}/MobiControl/WebConsole/api/security/principal/catalogueItems/${PROFILE_REFERENCE_ID}/rights

Does anyone know if there is an official API call for granting permissions to a profile, or if this endpoint is the correct and supported way to do it?

Thanks in advance for your help.

yesterday
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer Platinum Contributor
5 hours ago (edited 5 hours ago)

This seem to be official.

See from the API swagger page:

So, first grab the referenceID with this:

Optional: Grab the current permissions with the top one from above

And then align the permission with the middle one from above.

Solution
EC

Hi,

It works fine.

Thanks.