403 forbidden-Account management API

We are receiving a 403 forbidden resources error when calling the following account management Api endpoint:

https://api.dynatrace.com/iam/v1/accounts/<account-uuid>/users

This API is used in our automation process to terminate users who have moved out of the company.

The API token used for authentication is linked to an oauth client under our Dynatrace SAAS account. We have confirmed that the account UUID is correct. Kindly advise on how to resolve this.

Hi @Archana567_ ,

It seems the bearer is not being used propertly. Here you have this great post about automating  oAuth token generation.

Hope it helps.

Regards,

Elena.