About Service Accounts

Modified on Mon, 30 Nov at 2:46 PM

A Service Account lets another system connect to your IntelligenceBank platform with a Client ID and Client Secret instead of a person's login: a script or integration that calls the IntelligenceBank API, or an identity provider that manages your users through SCIM Provisioning.

Note: Service Accounts need API access. Contact us to learn more or to request access.

What a Service Account Is

A Service Account is a set of credentials for a system rather than a person: a Client ID and a Client Secret. The other system exchanges them for a short-lived access token whenever it needs one, with no username, password or browser sign-in, so it can run unattended.

Each Service Account is for one of two applications:

  • API: a script, integration or backend service calls your platform's API. The Service Account acts as a user you choose, with exactly that user's permissions.
  • SCIM Provisioning: an identity provider, such as Okta or Microsoft Entra ID, creates and manages your users. See SCIM User Provisioning (BETA). This option appears only when SCIM User Provisioning is enabled for your platform.

Administrators add and manage Service Accounts themselves, under Admin > Service Accounts. The page lists each one with its Name, Application, User, Token Lifetime, Last Token and when it was created.

Before You Start

  • API access enabled for your platform. It is an optional add-on: see About the IntelligenceBank API.
  • An administrator who is a Main Admin, or who has Main Admin rights on the Admin module. Only they see the Service Accounts page.
  • A user for each API Service Account to act as. Give each one a user of its own, added in Admin > Users first, with only the permissions the integration needs. The user must be active, and cannot be a billing admin, a support admin or a System User.
  • For SCIM Provisioning, SCIM User Provisioning enabled for your platform. IntelligenceBank enables it on request.

Adding a Service Account

1Open Service AccountsGo to Admin > Service Accounts and click Add Service Account.
2Name itEnter a Name that says what the other system is, so it can be told apart on this page, for example DAM Sync. Up to 200 characters, and different from every other Service Account's Name.
3Choose the applicationChoose API or SCIM Provisioning. The choice appears only when SCIM User Provisioning is enabled for your platform; otherwise the Service Account is for the API.
4Choose the userFor an API Service Account, search for the User it acts as. Active users without a Service Account are listed, up to 20 at a time: type more of a name or email address to narrow them down. A SCIM Service Account gets its own System User instead (see below).
5Set the Token LifetimeChoose how long each access token lasts, from 2 to 60 minutes. The default is 15.
6Copy the credentialsClick Add. Copy the Client ID, Client Secret and Token URL, or click Copy All. Give them to whoever sets up the other system, through a secure channel.
Important: The Client Secret is shown only this once. If it is lost, it cannot be shown again: generate a new one from Manage.

The Name, application and Token Lifetime cannot be changed once the Service Account is added. To change them, delete it and add it again.

Connecting Your System

The other system signs in with the OAuth 2.0 client credentials grant, which the API documentation calls Server-to-Server Login. It sends the Client ID and Client Secret to the Token URL and receives an access token.

Token URLShown for each Service Account. Its shape is https://<your platform URL>/api/3.0.1/<client id>/oauth2/token, where the client id identifies your platform.
RequestA POST with a form-encoded body: grant_type=client_credentials.
AuthenticationHTTP Basic, with the Client ID as the username and the Client Secret as the password. Alternatively, send client_id and client_secret in the body. You can also send both, as long as they match.
Responseaccess_token, token_type (Bearer) and expires_in, the token's remaining life in seconds.
Using the tokenSend it on every API call in an Authorization: Bearer <access_token> header, in place of the sid header a login session uses.

Reuse a token until it expires, then request a new one. A call made with an expired token is refused with a 401 error.

Every call runs as the Service Account's user: it sees and changes only what that user can, and its actions appear under that user in your Usage Report. Calls count towards your platform's API call allowance like any other API call. The full request and response, with examples, are in the API documentation under Authentication > Server-to-Server Login.

Managing a Service Account

Click Manage on a Service Account to see its details, including its Client ID, Token URL, and when its last token was issued. From there:

ActionWhat it does
Change UserMoves the Service Account to another user. It gets a new Client ID and Client Secret: the current ones stop working immediately, and the other system cannot connect until it has the new ones. Not available for SCIM Service Accounts.
Generate New Client SecretReplaces the Client Secret, for example when it is lost or may have been exposed. The old secret and every token issued with it stop working at once. The Client ID stays the same.
Revoke TokensEnds every token issued so far. The Client ID and Client Secret keep working, so the other system simply requests a new token. Use it when a token may have been exposed.
DeleteDeletes the Service Account. Its Client ID, Client Secret and tokens stop working at once, and this cannot be undone. The user it acted as stays.

Each new Client Secret is shown only once, like the first one.

A Main Admin can also do all of this through the API, with their own login session rather than a Service Account. See the Service Accounts calls in the API documentation.

SCIM Provisioning Service Accounts

A SCIM Provisioning Service Account connects your identity provider to your platform for user provisioning. It differs from an API Service Account in three ways:

  • It has its own System User. You do not choose a user. A System User is made with it, named after it, in no group, with no rights of its own, and taking no seat. The users your identity provider creates and changes are recorded against it.
  • Its tokens work for SCIM only. They cannot call the rest of the API, and an API Service Account's tokens cannot be used for SCIM.
  • Its user cannot be changed. Deleting it makes its System User inactive rather than removing it, so the users it changed still show who changed them.

Enter its Client ID, Client Secret and Token URL in your identity provider's SCIM settings. The rest of the setup, attribute mapping and behaviour are in SCIM User Provisioning (BETA).

Security and Good Practice

  • Treat the Client Secret like a password. Keep it in a secrets manager, out of source control and out of logs.
  • One Service Account per system. Give each integration its own Service Account and its own user, so you can see, limit and revoke each one separately.
  • Least privilege. The Service Account can do whatever its user can. Give that user only the access the integration needs.
  • Keep tokens short-lived. Use the shortest Token Lifetime that suits the integration.
  • React quickly. If a token may be exposed, revoke tokens. If the Client Secret may be exposed, generate a new one.
  • Credentials belong to one platform. They are refused by any other IntelligenceBank platform.
  • The user matters. If the Service Account's user is deactivated or archived, the Service Account stops working.

FAQ

Who can manage Service Accounts?Main Admins, and users with Main Admin rights on the Admin module, on platforms with API access.
Why can't I see Service Accounts in Admin?Either API access is not enabled for your platform, or you do not have Main Admin rights. Contact us to check.
Why isn't the user I want in the list?Only active users without a Service Account are listed. Billing admins, support admins and System Users cannot have one. Up to 20 users are listed at a time, so type more of their name or email address.
Can a user have more than one Service Account?No. Each user has at most one.
Why can't I choose SCIM Provisioning?SCIM User Provisioning is not enabled for your platform. See SCIM User Provisioning (BETA).
Does a Service Account take a licensed seat?An API Service Account uses the user it acts as. A SCIM Service Account's System User takes no seat.
I have OAuth 2.0 client credentials that IntelligenceBank issued before Service Accounts. Do they still work?Yes. When you are ready, add a Service Account for the same user and move your integration to it. Deleting that Service Account later removes the older credentials too. To remove them sooner, contact us.
Do calls made with a Service Account count towards my API allowance?Yes, like any other API call.

Need Help?

Related articles:

To have API access or SCIM User Provisioning enabled, or for any question about Service Accounts, submit a ticket.

Contact Support

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article