How can I query for a user with an authenticationI...
# gooddata-platform
s
How can I query for a user with an authenticationId, for example:
Copy code
{
            "id": "testUser",
            "type": "user",
            "attributes": {
                "authenticationId": "samlp|yexhmaaaa7avbje77xqf|KdvgnHwe0kiCzzzzzHe5Iw=="
            },
            "links": {
                "self": "<https://baseUrl/api/v1/entities/users/testUser>"
            }
        },
I've tried different queries like:
Copy code
{{baseUrl}}/api/v1/entities/users?filter=authenticationId=='samlp\|yexhmaaaa7avbje77xqf\|KdvgnHwe0kiCzzzzzHe5Iw\=\='
But having no luck
m
Hi Sheila, can you please make sure your call looks as described here: https://www.gooddata.com/developers/cloud-native/doc/2.1/api-and-sdk/api/api_reference_all/#/entities/getEntity%40Users. Also please feel free to move your inquiry to the correct channel in case further help is needed: https://gooddataconnect.slack.com/archives/C01P3H2HTDL
r
you should uri-encode the query parameters containing reserved characters. like:
Copy code
{{baseUrl}}/api/v1/entities/users?filter=authenticationId%3d%3d'samlp|yexhmaaaa7avbje77xqf|KdvgnHwe0kiCzzzzzHe5Iw%3d%3d'
🙌 1
s
THANKS, That worked!
r
Glad to help, Sheila.