Giving admin rights says "Successful" but doesn't really work

Hello. I am trying to give admin rights to a user. The command I’m using is:

cryosparcm cli "update_user(email='sampleemail@gmail.com', password='123456', admin='True')"

and I get the message “Update user successful.”

However if afterwards I do
cryosparcm cli "is_admin(user_id='sampleID')"

I get “False” and in the GUI it also shows as default user instead of Admin. What’s the problem?

Thank you

I have solved this. The problem was the single quotes on the ‘True’ value instead of True without quotes.

I think the interface should give an error saying that I was trying to assign a string to a boolean instead of just saying “Successful”

1 Like

Hi @Dmeff, welcome to community and thank you for flagging this! We’ve added this to our tracker and plan to address it in a future release.

1 Like