Hello, I'm trying to set up an SSO provider, but a...
# gooddata-platform
p
Hello, I'm trying to set up an SSO provider, but am getting a "Can be accessed only by domain admin" error. I'm pretty sure my user is an admin, so maybe my domain is wrong? I'm using the API URL "https://mydomain.com/gdc/domains/mydomain.com/authentication/providers" is the domain id correct here?
m
Hi Paul, you’ll need to update the URL with your domain details, as highlighted below: https://`<Your-Domain>`/gdc/domains/`<Your-Domain>`/authentication/providers
p
Hi Michael, thanks for your reply. I am using my real domain in place of mydomain.com in my real API requests, but am still getting the error.
m
In the second domain parameter - You need to put the domain ID and not the URL, for example: https://`mydomain.com`/gdc/domains/`mydomain`/authentication/providers
p
Ah thank you, that looks like it works! For clarification my working URL is like this: https://subdomain.mydomain.com/gdc/domains/mydomain/authentication/providers
m
Great! Glad to hear that works for you 🙂
m
BTW if you ever need to determine the domain_id, with a currently logged in user you can go to
<https://example.gooddata.com/gdc/account/profile/current>
(with your proper GoodData hostname) or call an API
/gdc/account/profile/current
. And you will receive back information about current user with
links
part and there is
links.domain
in form of
/gdc/domains/*domain_id*
p
Thanks Michal, that's very useful to know đź‘Ť