Google Cloud Platform projects are popular because they offer a wide range of features and options for users. One of the most popular features of Google Cloud Platform is the ability to add new users. This article will show you how to add new users to your project. First, create a new project in Google Cloud Platform. Next, create a user account and password for the user you want to add new users to your project. Finally, add the user to your project and configure their settings.
- Create a new project in Google Cloud Platform: To create a new project in Google Cloud Platform, use the following command:
- Create a user account and password for the user you want to add new users to your project:
To create a user account and password for the user you want to add new users to your project, use the following command: $ gcloud auth login –user=
–password= . You can also use this command if you have already created an account with Google Cloud Platform. If you do not have an account yet, please sign up for one here . The –user argument tells GCP how to find out who is currently logged into your system as that username (the default is “root”). The –password argument tells GCP how to find out what is entered as that username’s password (the default is “123456”). If both arguments are omitted or if there is no username or password given when GCP starts up, GCP will automatically generate them for you based on information in your environment (e.g., ~/.gcloud). To remove a user from your project after they have been added, use the following command: $ gcloud auth delete . You can also remove individual users by using this command: $ gcloud auth list-users . If there are no individual users listed for , then
Google Cloud Platform uses regular Google accounts for authentication, which means you can add new users directly from their Gmail or G Suite account, rather than manually creating employee accounts like with AWS IAM.
Adding a User
Google splits all GCP resources into “Projects.” Each project has its own set of permissions, and its own set of users that can access it. One of the benefits of using Google for authentication is that users can be in multiple projects from multiple different owners all at the same time, even having personal projects of their own, all while using the same personal Google account. Of course, if you have a company G Suite, you should use that, but the principle works the same.
Google makes the invite process very easy, especially when compared to AWS’s IAM Users system. To get started, you’ll just need an Google email address for the user. If you’re inviting someone from their personal email, any @gmail.com email will work fine. If you’re inviting employees, you’ll need to make sure they have a company G Suite account.
From the Google Cloud Platform Console, find “IAM & Admin” in the sidebar, and click on “IAM.”
From here, click “Add” to bring up the invite dialog.
Enter in the user’s email. You can also choose to set a project-wide role, if you need to give them full read or write permissions.
There are plenty of options for roles—Project browser, editor, owner, and viewer all give some level of access to every single resource. If this user doesn’t need that level of access, you can always give out access to a specific resource (like Compute Engine), or give out access on a per-resource basis using resource IAM policies. You can read more about that in our guide to permission management in GCP.
Once you add the user, they’ll be sent an invitation via email that they will need to accept. Tell them to check their email and click the link.
They’ll be brought to the GCP homepage, and the project should switch automatically. If it doesn’t, you can always change the project from the drop-down menu in the top header bar.
The project info should display on the dashboard, confirming you have access, and you should be able to access the resources your role allows.