Hi was trying to create a user using the create user api. I was able to save and retrieve back the created user but I was wondering the email is always null even though I sent it with value. If anyone could also direct me to documentation where I could see the list of acceptable fields for the body for the create user I would appreciate.
This is my sample parameters(body) I sent:
var newUserProfile = new LookerUserProfile()
{
FirstName = "MyFirstname",
LastName = "MylastName",
Email = "MyFirstname.MylastName@gmail.com"
};
https://docs.looker.com/reference/api-and-integration/api-reference/v3.0/user#create_user
khmersongxxxx18@gmail.comkhmersongxxxx18@gmail.com
Hi @charliev
That would be working as expected. As you can see here, the email field is read-only
To add an email credential, you would need to run a second call -- create_email.
Here are some other resources that potentially could provide a framework or give you an idea of some common workflows to create users.
https://community.looker.com/looker-api-77/creating-new-users-through-google-sheets-using-looker-api...
https://community.looker.com/open-source-projects-78/automatically-provisioning-users-with-the-looke...
Eric
to call the create_user_credentials_email method, we need to know the id of the user though. How do we do that? Is there is a method to get the id of the user?