Can I Create 2 Gmail Accounts

1 view
Skip to first unread message

Kapil Grunewald

unread,
Aug 4, 2024, 2:09:15 PM8/4/24
to efplacluken
Aservice account is a special kind of account typically used by an applicationor compute workload, such as a Compute Engine instance, rather than a person.A service account is identified by its email address, which is unique to theaccount.

Applications use service accounts to makeauthorized API callsby authenticating as either the service account itself, or as Google Workspaceor Cloud Identity users throughdomain-wide delegation.When an application authenticates as a service account, it has access to allresources that the service account has permission to access.


There are other ways to let applications to authenticate as service accountsbesides attaching a service account. For example, you could set up Workload Identity Federationto allow external workloads to authenticate as service accounts, or create aservice account key and use it in any environment to obtain OAuth 2.0access tokens.


Default service accounts: User-managed service accounts that are createdautomatically when you enable certain Google Cloud services. You areresponsible for managing these service accounts.


When an authenticated principal, such as a user or another service account, authenticates as a service account to gain the service account's permissions, it's called impersonating the service account. Impersonating a service account lets an authenticated principal access whatever the service account can access. Only authenticated principals with the appropriate permissions can impersonate service accounts.


Impersonation is useful when you want to change a user's permissions without changing your Identity and Access Management (IAM) policies. For example, you can use impersonation to temporarily grant a user elevated access, or to test whether a specific set of permissions is sufficient for a task. You can also use impersonation to locally develop applications that can only run as a service account, or to authenticate applications that run outside of Google Cloud.


Service accounts do not belong to your Google Workspace domain, unlikeuser accounts. If you share Google Workspace assets, like documents orevents, with your entire Google Workspace domain, they are not sharedwith service accounts. Similarly, Google Workspace assets created by aservice account are not created in your Google Workspace domain. As aresult, your Google Workspace and Cloud Identity admins can't own ormanage these assets.


Service accounts are principals. This means that you can grantservice accounts access to Google Cloud resources. For example, you couldgrant a service account the Compute Admin role (roles/compute.admin) on aproject. Then, the service account would be able to manage Compute Engineresources in that project.


However, service accounts are also resources. This means that youcan give other principals permission to access the service account. For example,you could grant a user the Service Account User role(roles/iam.serviceAccountUser) on a service account to let the user attachthat service account to resources. Or, you could grant a user the ServiceAccount Admin role (roles/iam.serviceAccountAdmin) to let the user do thingslike view, edit, disable, and delete the service account.


Because service accounts are principals, you can let a service account accessresources in your project by granting it a role, just like you would for anyother principal. For example, if you want to let your application's serviceaccount access objects in a Cloud Storage bucket, you can grant the serviceaccount the Storage Object Viewer role (roles/storage.objectViewer) on thebucket.


As with other principals, you can add service accounts to a Google group, thengrant roles to the group. However, adding service accounts to groups is not abest practice. Service accounts are used by applications, andeach application is likely to have its own access requirements.


Service accounts are also resources that can have their own allow policies. As aresult, you can let other principals access a service account by granting them arole on the service account, or on one of the service account's parentresources. For example, to let a user impersonate a serviceaccount, you could grant the user the Service Account Token Creator role(roles/iam.serviceAccountTokenCreator) on the service account.


When granting a role that allows a user to impersonate a service account, keepin mind that the user can access all the resources that the service account canaccess. Use caution when letting users impersonate highly privileged serviceaccounts, such as the Compute Engine andApp Engine default service accounts.


As you manage your projects, you'll likely create, manage, and delete manydifferent service accounts. This section describes key considerationsfor managing your service accounts at the various stages of their lifecycle.


This approach puts all of the service accounts for your organization in asmall number of projects, which can make the service accounts easier tomanage. However, it requires extra setup if youattach service accounts to resources in other projects, whichallows those resources to use the service account as their identity.


When a service account is in one project, and it accesses a resource inanother project, you usually must enable the API for thatresource in both projects. For example, if you have a service account in theproject my-service-accounts and a Cloud SQL instance in the projectmy-application, you must enable the Cloud SQL API in bothmy-service-accounts and my-application.


If you enforce this constraint in a project, or in all projects within anorganization, then some Google Cloud services cannot createdefault service accounts. As a result, if the project runsworkloads that need to authenticate as a service account, theproject might not contain a service account that the workload can use.


To address this issue, you can enable service account impersonation acrossprojects. When you enable this feature, you cancreate service accounts in a centralized project, then attach the serviceaccounts to resources in other projects. Workloads running on those resourcescan use the attached service accounts to authenticate, making the defaultservice accounts unnecessary.


The display name of a service account is a good way to capture additionalinformation about the service account, such as the purpose of the serviceaccount or a contact person for the account. For new service accounts, you canpopulate the display name when creating the service account. For existingservice accounts use the serviceAccounts.update() method tomodify the display name.


Unused service accounts create an unnecessary security risk, so we recommenddisabling unused service accounts, thendeleting the service accounts when you are sure that you no longerneed them. You can use the following methods to identify unused serviceaccounts:


If you are an Security Command Center Premium customer, you can useEvent Threat Detection to get a notification when a dormant service accounttriggers an action. Dormant service accounts are service accounts that have beeninactive for more than 180 days. After a service account isused, it is no longer dormant.


When you delete a service account, its role bindings are not immediatelydeleted. Instead, the role bindings list the service account with the prefixdeleted:. For an example, seePolicies with deleted principals.


If you create a new service account with the same name as a recently deletedservice account, the old bindings may still exist; however, they will notapply to the new service account even though both accounts have the same emailaddress. This behavior occurs because service accounts are given a unique IDwithin Identity and Access Management (IAM) at creation. Internally, all role bindings aregranted using these IDs, not the service account's email address. Therefore, anyrole bindings that existed for a deleted service account do not apply to a newservice account that uses the same email address.


Similarly, if youattach a service account to a resource, thendelete the service account and create a new service account with the same name,the new service account will not be attached to the resource.


To prevent this unexpected behavior, consider using a new, unique name for everyservice account. Also, if you accidentally delete a service account, you can tryto undelete the service account instead of creating a new serviceaccount.


If you cannot undelete the original service account, and you need to create anew service account with the same name and the same roles, you must grant theroles to the new service account. For details, seePolicies with deleted principals.


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.


I bought them for Xmas 2023 and linked to my own old account which worked fine. Now this doesn't seem to work and when I try to sort it the only way to do it appears to create gmail accounts for my two children (both under 10). This just seems odd / excessive for what is effectively a children's toy? I don't want to do this does this make them unusable?


Please take note that the new process for establishing a family account after migrating to a Google account has changed. In order for the kids' devices to continue syncing properly, there are 2 crucial requirements:


2. The children will require to have either a separate or their own mobile device in order to log in to the Fitbit App with each of their own accounts that you will require to setup with a children Google email.


3. If using Android devices each of the kids will need to log in through a mobile device where there are no adults Google email addresses registered already since due to security purposes Google does not allow them to register a children and an adult account in the same mobile device. If using an iPhone they will not require their own mobile device since you can log in and log out of the children email address as you desire to get their device synced.

3a8082e126
Reply all
Reply to author
Forward
0 new messages