Creating unique service account credentials
Creating a unique set of service account credentials provides more security. Unique service account credentials include the following:
- Client ID (a long number)
- Service account ID (email address)
- Service account certificate (a certificate in
.pem
format)
To create unique service account credentias:
- Go to Google API Console.
- Log in with your Google Workspace account credentials.
- Create a new project:
- Click the toolbar list. The browser displays the following dialog.
- Select your organization, if you see an organization dropdown list. Click New Project.
- In the Project name field, enter your project name, then click Create.
- Enable the Admin SDK:
- Select your project from the toolbar list, then click APIs & Services.
- Under Google Workspace APIs, search for Admin SDK API and enable it.
After enabling the Admin SDK API, the console displays a message indicating: To use this API, you may need credentials.
- Create a service account:
- Go to the Credentials tab and select Create Credentials > Service account.
- From the Service account list, select New Service Account. Enter a service account name.
- From the Role list, select Project > Viewer.
- Edit the created service account and go to Keys. Click Add Key to create a P12 private key.
- Save the private key and note the private key password, "notasecret".
The private key with the
P12
extension is the only copy you receive. Keep it in a safe place. You should also remember the password prompted on the screen. At this time, that password should benotasecret
.
- Edit the service account you just created and expand Advanced settings. There is a Domain-wide Delegation message and step-by-step guide.
To use the private key in EMS, it needs to be converted to C:\OpenSSL-Win64\bin>openssl pkcs12 -in demo-976b9d6e9328.p12 -out serviceAccount-demo.pem -nodes -nocerts Enter Import Password: |