Different results from API calls when using OAuth access token & an API-key
Hello,
I'm attempting to get user data from the Qlik Sense API. I have setup my Postman to use Oauth2 and retrieve an access token (this part works just fine.) When I hit the /users endpoint using the oauth access token, the only keys returned are for id, tenantId, status, name, email, & picture. If I change my authentication to use the generated API key from the API keys section of the management console, i'm able to get the same keys as when I used the Oauth access token but in addition I get a roles array, assignedRoles, groups, and assignedGroups array.
Why is it that when I use Oauth, I get a limited data set in return for the Users object & when I use the generated Api Key, i'm able to get all those extra fields (roles, groups, etc.)? Is that just how the Oauth access token works? Or am I missing something.
Also, when I attempt to update a user by ID using the oauth access token, I get a 403 forbidden in return & when I use the API key, it works just fine.
**Note** I am the creator/admin of the account and have all roles attached to my user account (the same account I use to log into when generating the Oauth access token.