Hi team,
I have a doubt regarding user provisioning. When I make a call to the GET Users API endpoint to get the details of a single user, I am getting the response with first name, last name, email, role details, team details and if he/she is a superadmin or not.
Response json:
{
“firstName”: “string”,
“lastName”: “string”,
“primaryTeamId”: “101”,
“roleIds”: [
“string”
],
“sendWelcomeEmail”: true,
“roleId”: “100”,
“secondaryTeamIds”: [
“102”
],
“id”: “123”,
“superAdmin”: false,
“email”: “newUser@email.com”
}
But in this response, there is no key present to identity if this user is active or inactive in Hubspot. Also, there is no API that supports to activate/deactivate the user from the IDP. Also, I noticed that it is possible to deactivate the user only from the Hubspot side alone but this user will still be active in the IDP side which leads to consistency.
My questions:
1. Why there is no API supported that allows the IDP to change the status of a user(active/inactive) while Hubspot allows to change the status from Hubspot side alone?
2. Why the status of a user is not sent in the GET user response as I explained above?
Can you kindly explain the scenario and provide clarifications to my above questions?
Looking forward to your response.
Thanks and Regards,
Shrihari.