We want to assign Roles to users from a Federated IdP, before they have signed in. Problem is the user does not exist in Auth0 until they have signed for the first time.
So far the process we have worked out and that is not optimal is:
Send invite to user
Wait for user to sign up using their federated provider. (User can’t use the App as role still not assigned…)
You could also add emails to a list when their invite is sent and then look up the list of users/required roles when they log in. You could call your own API to track expected users/roles and call it within the rule or you could use this example that uses a dropbox-hosted file to keep track of users.
Thanks for the answer @stephanie.chamblee - are the above solutions possible without leaving the Auth0 domain?
I don’t want to build a solution where email addresses are being stored outside of Auth0. I.e: I don’t want to create CloudStorage where I will have emails of users there to create this role assignment, as I would like all of the sensitive information to never leave Auth0.