GET /api/2/users/me return 401

Hi,
I start a PHP/Laravel module to get quota and usage. I want to get the first tenant_id, so I call /api/2/users/me
Previously, /idp/token was successiful, and give me access_token
access_token work fine (GET /versions or GET /applications give me good result) (with
headers Authorization Bearer)
But GET /api/2/users/me give me HTTP/1.1 401 Unauthorized (["code"]=> int(401) ["message"]=> string(2) "OK")
Why my /users/me return 401 error ? Where I can find the tenant uuid without using /users/me?
Thanks

Hello
Thanks for your answer
I connect with my API client created from the https://eu-cloud.acronis.com/mc/ panel (Settings->API client)
I think it was linked to my user account. (But i understand it's not true, thanks for the changelog)
I can't use /api/2/cleints/{client_id} because I don't know any client_id, neither any uuid/client/parent_uuid/tenant... I don't find api method like /api/2/clients/list or /api/2/tenant/list without asking those Ids
Some code example i found create API client with code, so they get client_id or tenant. But How to get those informations with already created API client ?
Thanks
- Log in to post comments

You know client_id. It's client_id, which you've received creating an API Client.
You use client_id as a username when you issue an authorization token.
An API Client is disconnected from an account from which it's created for security and sustainability reasons. As well we plan to have more granular permissions for API Clients itself.
- Log in to post comments
Stas Pavlov | Technology Evangelist
Acronis Developer Network | Acronis Cyber Cloud Solutions Portal | Acronis Cyber Platform
For more answers to your questions, try our Knowledge Base and Video Tutorials
Our mission is to create Customers and Partners success. Our management team welcomes your comments and suggestions on how we can improve the overall support we provide to you. Please send your comments, suggestions, or concerns to Managers or submit your feedback here.

Stas Pavlov | Technology Evangelist
Acronis Developer Network | Acronis Cyber Cloud Solutions Portal | Acronis Cyber Platform
For more answers to your questions, try our Knowledge Base and Video Tutorials
Our mission is to create Customers and Partners success. Our management team welcomes your comments and suggestions on how we can improve the overall support we provide to you. Please send your comments, suggestions, or concerns to Managers or submit your feedback here.