I’m trying to automate:
- creating a client
- creating a connection to an email / password database, with only this client enabled
- creating a user in this database
I create a non-interactive client, get a management api token for this client, and use this token to create the client and connection.
In particular, for the connection,
enabled_clients is a list of only the client_id of the client created in the first step (NOT the non interactive client.)
I have two problems:
- The client is associated to all connections in my tenant. Is there a way to disable that ?
- When I try creating a user, I get an error with message:
connection is disabled (client_id: NI_CLIENT_ID, connection: CONNECTION_NAME)
The only way to create a user is if the connection is also enabled for the NI client.
But it does not make sense (and It seems the user is not created in the right database)
What am I missing ?
What should I do to enable the connection (and only this connection) for the client ?