I have an integration with several of the APIs and manipulating the members. I would like to access the members using their externalId
. I have already have SSO and the auth ids are added to the users externalId
just fine.
Looking at the docs here (https://developers.bettermode.com/docs/graphql/queries/member/) it looks like I can only GET users by their Bettermode ID and their username. Note no external ID mentioned.
When I make a call to Member endpoint like this.
client.query({
name: 'member',
args: {
variables: {
externalId: 'auth0|xxxxxxx',
},
fields: 'basic',
},
});
I get this error message Error: You should provide one of the ID, username, or external ID inputs
This make me think I CAN use the external id
I have tried external id
, external ID
, externalId
, externalID
, external_id
, external_ID
as the key in the variables and none of them work. They all produce the same error.
I can confirm that when I search for my user using my community id, it works fine and returns my user. I should also note that the user that gets returned has the externalId: 'auth0|xxxxxxx' in the user data.