Hi Guys,
When I try and run the POST for the https:<server>/api/session/sessionMngr/?v=latest endpoint I see the following response with the account I have
{"FirstChanceExceptionMessage":null,"StackTrace":null,"Message":"User 'VEEAM\\username does not have any roles","StatusCode":401,"Status":"Unauthorized"}
The Veeam API reference docs suggest that the security role implementation for the API is different than for the Web UI (maybe I am misreading this) so how are this assigned without having a user account you can establish an API session with? Is there a default Administrator account which should have API permissions established at implementation time which should be used or is there another way?
Any pointers you can provide would be greatly appreciated.
Thanks
Moshe
-
- Certified Trainer
- Posts: 14
- Liked: 2 times
- Joined: Jan 25, 2021 10:26 pm
- Full Name: Moshe Mazor
- Contact:
-
- VeeaMVP
- Posts: 695
- Liked: 374 times
- Joined: Jun 24, 2019 1:39 pm
- Full Name: Chris Arceneaux
- Location: Georgia, USA
- Contact:
Re: How roles are assigned to the user account for the Enterprise Manager API
Hi Moshe,
From your post, it seems you've already found our API documentation taking about Security Roles.
Answering your question, all local & Active Directory users assigned the Portal Administrator role in the Web UI will have that same level of access in the REST API. From there, the API-specific security roles can be assigned via API as discussed in the documentation you've already identified.
Hope this helps!
From your post, it seems you've already found our API documentation taking about Security Roles.
Answering your question, all local & Active Directory users assigned the Portal Administrator role in the Web UI will have that same level of access in the REST API. From there, the API-specific security roles can be assigned via API as discussed in the documentation you've already identified.
Hope this helps!
-
- Certified Trainer
- Posts: 14
- Liked: 2 times
- Joined: Jan 25, 2021 10:26 pm
- Full Name: Moshe Mazor
- Contact:
Re: How roles are assigned to the user account for the Enterprise Manager API
Thanks Chris, it is sure helpful
Thanks
Thanks
Who is online
Users browsing this forum: No registered users and 3 guests