Creating a Service Account
A quick guide on how to create a Service Account using DT Studio or our REST API.
Last updated
Was this helpful?
A quick guide on how to create a Service Account using DT Studio or our REST API.
Last updated
Was this helpful?
We will here create a new a new Service Account using either DT Studio or our REST API. Once created, the Service Account is granted membership in the project and provided it a role. Then, a new Key Pair is generated as credentials for interacting with the REST API.
Service Account Creating, deleting, and interacting with Service Accounts require that your User or existing has been granted the of Project Administrator or higher.
The project our new Service Account is created in becomes the owning project. However, this does not provide rights in said project, which must be explicitly granted after creation.
In , navigate to your Project. In the left menu, locate Service Accounts and press Create new Service Account. Give it a name and click Add.
Your new Service Account is now active but does not have permissions in any projects. We will now give it membership in the project, including a role and other configurations.
Click on your new Service Account. This will take you to the configuration page, where the following details are presented. Edit as desired.
Service Account Email An automatically generated email is used for both authentication and access rights management in other projects and organizations. This can not be edited.
The last step is to create a key. Remember that while the generated Key ID will always be listed under your Service Account, the secret will be shown only once, so make sure to write it down.
On your Service Account configuration page, click Create New next to Active Keys. The pop-up dialog contains the newly created Key ID and secret.
The Service Account creation is now complete, and you may use it as desired.
Once the package is installed and authenticated as described in the , a new Service Account can be created by calling the following resource method.
Using our Python API with Service Account credentials for authentication, the following example creates a new Service Account with a given name and enabled.
Role in the current project Controls which permissions are granted in the current project. You can find a list of all permissions per role on our page.
Enable Basic Auth The simplest method for authenticating the REST API. While we recommend using an , Basic Auth can be handy for quick prototyping and single calls.
A list of all available parameters can be found in our .
Once the package is installed and authenticated as described in the , a Service Account can be granted a project role by calling the following resource method.
The same call exists for an organization under .
Once the package is installed and authenticated as described in the , a new key can be created by calling the following resource method.
.
.
.