Hey guys I’m trying to get user by email , using t...
# gd-beginners
n
Hey guys I’m trying to get user by email , using the API {{baseUrl}}/api/v1/auth/users/mehmed@officernd.com , but I’m getting 404 error “No API path found that matches request ‘/api/v1/auth/users/mehmed@officernd.com’.“,
m
Hi Nedzhati*,*
/api/v1/auth/*
API endpoints are used for creating users within the internal OpenID Connect provider in the on-premise (GoodData.CN) product. Because the GoodData Cloud does not use this internal provider, these endpoints are not available there. Please use instead: https://www.gooddata.com/docs/cloud/api-and-sdk/api/api_reference_all/#operation/getEntity@Users
n
ok great, but those apis require id
I’m testing trial good data, and want to setup, iframe embedding, and SSO user authentication with jwt
but for this I need some endpoint to check if user with specific email exists, if not to create one
m
It’s currently possible to get the user by Id’s only, this is the same Id that should be tied to the user in the OIDC provider or in the organization and must be unique. Alternatively, you can use this API to get all the users at once so you can create more as needed: https://www.gooddata.com/docs/cloud/api-and-sdk/api/api_reference_all/#operation/getAllEntities@Users
n
ok thank you