Skip to content

Commit

Permalink
#11 service account key file create doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kamarton committed Jan 16, 2023
1 parent 3f2a141 commit 60a4a30
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
Binary file added docs/images/service-account-create-key-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/service-account-create-step1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/oauth-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You can enable the APIs for the services you want to use based on this descripti

## 4. Create a "OAuth content screen"

- In gcp console navigate to "APIs & Services" > "OAuth Content Screen"
- In GCP console navigate to "APIs & Services" > "OAuth Content Screen"
- Please fill in the required information. If you are using it for your own purposes,
there is no need to fill in all the information, as you will only be using it in test mode.

Expand Down
33 changes: 31 additions & 2 deletions docs/service-account-setup.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Service Account Setup

**This solution can only be used for google workspace paid plans.**
**This solution can only be used for Google Workspace™ paid plans.**

## 1. Register to Google Cloud

Expand All @@ -13,6 +13,35 @@ If you do not have an account yet, here is the description: [Registering to GCP]
You can enable the APIs for the services you want to use based on this description:
[Enable APIs on GCP](enable-gcp-apis.md)

## 4. Generate key file for service account
## 4. Create a service account

- In GCP console navigate to "APIs & Services" > "Credentials"
- The "+ CREATE CREDENTIALS" button at the top of the page.
- In the select, choose "Service account".
- Fill the input fields and click the "CREATE AND CONTINUE" button.
![](images/service-account-create-step1.png)
- "Grant this service account access to the project', then click on the 'CONTINUE' button."
- "Grant users access to this service account", then click on the "DONE" button.

"The service account has been successfully created.

## 5. Creating and downloading a key file for the service account.

- In gcp console navigate to "APIs & Services" > "Credentials"
- In the "Service Accounts" section, click on the email address of the service account that you created.

![](images/service-account-create-show-created.png)
- Click on the "KEYS" tab
![](images/service-account-create-key-tab.png)
- Click on the "ADD KEY" button and choose "Create new key".
- Key type JSON, click on the "CREATE" button.
- Save the key file in a location where gwbackupy has access to.

**Do not share the key file with anyone and do not make it accessible on the internet.**

You have successfully completed the steps. ű
All you have to do now is to provide the path of the key file as a parameter for gwbackupy.

## 6. Delegating the service account to all users in Google Workspace™. (Optional)

...

0 comments on commit 60a4a30

Please sign in to comment.