VMware Cloud Community
carl1
Expert
Expert

vRA 8.2 - Add role to Enterprise Group via REST

I am trying to automate the setup of our Dev VRA's.  First task, permit our AD groups access to the vRA after LCM has provisioned it.  However I can't seem to find anything in the REST API to allow me to do that.  I can find lots on user calls but nothing for "Enterprise Groups".  I have tried a couple of the queries for groups (there seems to be two types) against a manually set up vRA, but nothing returned matches anything on the Enterprise Groups tab.  Any direction to REST docs or, an example, would b e much appreciated.

Thanks all,
Carl L.

0 Kudos
2 Replies
xian_
Expert
Expert

Devtools reveals the following URL when adding a group via gui.

POST /csp/gateway/portal/api/orgs/05b138db-c915-41fb-8354-284329e9e9c8/groups

Payload:

{"ids":["2d4c0c0f-5b8f-4543-88ed-9325e678f3b4"],"organizationRoleNames":["org_member"],"serviceRoles":[{"serviceDefinitionId":"b75d7ef0-6cb4-4704-be10-d7fee53948bd","serviceRoleNames":["automationservice:cloud_admin"]}]}

This does not seem to be documented in Swagger, though.  You can peek how the GUI fetches the IDs in the payload.

HTH

0 Kudos
carl1
Expert
Expert

VMware support official response is that it is not supported, yet.

Carl L.

0 Kudos