When using the management API to bulk import a list of users via the /api/v2/jobs/users-imports endpoint, is it possible to also assign roles to the users? I don’t see anything in the JSON schema that lets us assign a role to a user.
However, I did notice that in this tutorial video at 7:25, a role is assigned to a user in the example using the “app_metadata” JSON property. I tried to do the same when testing a bulk import, but that didn’t seem to work. I took a look at the roles and permissions for the new users in the management portal, and nothing was set. The only property that was set was the “app_metadata” property on the user.
Is there any way to actually set a user’s roles and permissions when bulk importing?
NOTE: Our auth API is setup to use RBAC.