CustomUserProvisioning executing during logins

0
I have an app set up with the custom microflow enabled for user provisioning, but NOT for after signing logic.  This microflow has a database connection that makes a call to get info about the user now available in the SAML assertions. There was an error with the DB permissions which I would expect would only affect users being PROVISIONED, but every user logging in was getting an error. It appears this microflow was being executed for EVERY USER which already had an account. I thought this microflow was only for the very first time a user was being created. What gives????  
asked
1 answers
0

Hi brian,

Custom user provisioning is used to perform custom logics before the sign-in , 

it checks for user session ,It won't trigger if your session is there , but if you login again in same day or next day and your session is not there it will trigger again

if you want to make some logic for first time login, create dome boolean first_time and keep ot false and when users logs in first time make this boolean true so next time skip those steps checking this first_time boolean is true or not

 

answered