Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GCE: OS login without domain suffix name

I am Google workspace user and using Google Compute Engine. When I enabled OS login for our project, then login username changed to username_with_domain_suffix.

Now I would like to change my login username as without domain_suffix, so I tried to modify username via Directory API, by update username in posixAccount section.

Currently I am granted groups admin and user management admin role in google workspace. I could get my account information from users.get API site( "Try this method" section) , but got error 403("Not Authorized to access this resource/api") response when I send to update request from users.update API site( "Try this method" section). Admin SDK API is enabled in our GCP project. How can I update our GCE login user name? Possibly super admin role is required to send update request? Any comments will be appreciated, thanks!

0 4 1,056