Question

create_user api not saving the email address

  • 9 June 2021
  • 2 replies
  • 40 views

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


2 replies

khmersongxxxx18@gmail.comkhmersongxxxx18@gmail.com

Userlevel 3
Badge

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-6964

https://community.looker.com/open-source-projects-78/automatically-provisioning-users-with-the-looker-api-12016
 

https://help.looker.com/hc/en-us/articles/360039011634-Creating-Users-and-Sending-Custom-Welcome-Emails-via-API-

Thanks,

Eric

Reply