Levi Liester
06/26/2023, 8:16 PMthis can only be done by a domain admin
How would you know if you were a domain admin or not?Michal Hauzírek
06/27/2023, 6:42 PMhttps://*{hostname}*/gdc/domains/*{your domain ID}*/
If you get AuthorizationFailedException response, you are not a domain admin. If you get OK response with some links to other domain resources, you are a domain admin.
• If you do not know your domain ID, you can first call https://*{hostname}*/gdc/account/profile/current
and find your domain ID in the response under accountSetting/links/domain
.
• Once you are a domain admin, you can list all domain admins with https://*{hostname}*/gdc/domains/*{your domain ID}*/admins
For GoodData Cloud and GoodData.CN
Here the equivalent of “domain” is called “organization” and the equivalent of “domain admin” is a user with MANAGE permission to the organization. You can use the /api/v1/layout/organization
endpoint to check which users/user groups have this permission (look for organization/permissons and a node with name value MANAGE)Levi Liester
06/27/2023, 6:54 PMMichal Hauzírek
06/27/2023, 6:56 PMLevi Liester
06/27/2023, 6:57 PMLevi Liester
06/27/2023, 6:58 PMMichal Hauzírek
06/27/2023, 6:59 PM