VMware vidm api: “User is not authorized to perform the task” [Generate OAuth Bearer Token]

issue: For one of the automation task for vmware vidm get attribute api, for admin user the code was failing.
It was giving error message “User is not authorized to perform the task”

After creating the Remote App Access client, generate an OAuth bearer token.

Create Remote app client:


Download and install the Postman app. You can download Postman from https://getpostman.com

Steps to generate Oatuh Bearer token