Forum Discussion
ChayceDuncan2
6 years agoQrew Cadet
In situations where the user exists - you'll have to swap out ProvisionUser for API_AddUserToRole instead. Provision user can't add someone when they already have a User ID - so you just need to add them to your specific app - AddUserToRole is the go to
Chayce Duncan | Director of Strategic Solutions
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base
Chayce Duncan | Director of Strategic Solutions
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base
- KirtanPatel6 years agoQrew TraineeOkay. That makes sense.
The same thing is happening when we add a new user to our app via QuickBase UI? - ChayceDuncan26 years agoQrew CadetI would imagine so. The UI has access to more Quick Base data than just whats in your app - so it knows the difference between adding a user for the first time and just adding them to your app.
If you're using JS / jQuery you can set up a condition to watch for that particular status code. If you receive it - you go to the next place and chain the following calls together =>
API_GetUserInfo (this will return the User ID so you can add them to your app)
API_AddUserToRole (this adds them to your app)
Chayce Duncan | Director of Strategic Solutions
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base - KirtanPatel6 years agoQrew TraineeAppreciate your help Chayce. you are a lifesaver.