# Revoke a service account's token

## Overview

[Video: Revoke a service account's token](https://www.youtube.com/watch?v=LwAdnWWqpno)

This flow describes how to revoke the token of a [service account](https://docs.ohc.network/concepts/access-governance/service-account.md). Care deletes the token, so the service account no longer has one.

Care shows **Manage Token** only to the person who created the service account.

## Pre-requisites

* You created the service account.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can List Users in an Organizations | Opens the **Service accounts** tab of a government organization, where you find the service account. Hold it in the organization or a parent organization. By default, the Volunteer, Doctor, Nurse, Staff and Administrator roles hold it in a government organization. |

Care shows **Manage Token** only to the person who created the service account.

## Steps

### 1. Open the profile of the service account

This page starts from the **Service accounts** tab of a government organization where the service account has a role. If it has no role there, see [Add a service account to an organization or department](https://docs.ohc.network/flows/access-governance/service-account/link-service-account.md).

On your dashboard, select the **Governance** tab. Select the organization.

Select the **Service accounts** tab.

A sub-organization has its own **Service accounts** tab. To open a sub-organization, see [Open a government organization](https://docs.ohc.network/flows/access-governance/organization/view-organization-hierarchy.md).

In the row of the service account, select **View**. Care opens the profile of the service account.

![The Care screen at the step: Open the profile of the service account](/assets/images/revoke-service-account-token-1-9b2bf7ec41a8b7d9bae63e98988c5dd5.webp)

### 2. Select Revoke Token

In the **Manage Token** section, select **Revoke Token**.

Note: If you did not create the service account, Care does not show **Manage Token**.

![The Care screen at the step: Select Revoke Token](/assets/images/revoke-service-account-token-2-a7834c92b946ac424301040358002c71.webp)

### 3. Confirm

Care opens the **Revoke Token** dialog. It asks if you are sure that you want to revoke the token for this service account.

The dialog says that you cannot undo this action. It also says that applications that use the token lose access at once.

Select **Revoke**. While Care works, the button shows **Revoking...**.

Care deletes the token and shows **Token revoked successfully**.

Note: Care does not check that the service account has a token. If it has no token, Care still shows **Token revoked successfully**.

![The Care screen at the step: Confirm](/assets/images/revoke-service-account-token-3-0de5308ecfd456dd97f907bee08bb555.webp)

## Expected Outcome

* The service account has no token.
* Care deletes only the token.
* To give the service account a token again, generate a new token.

## Related

Concepts:

* [Service account](https://docs.ohc.network/concepts/access-governance/service-account.md)

Flows:

* [Generate a token for a service account](https://docs.ohc.network/flows/access-governance/service-account/generate-service-account-token.md)
* [Create a service account](https://docs.ohc.network/flows/access-governance/service-account/create-service-account.md)
* [Change a service account's role or remove it](https://docs.ohc.network/flows/access-governance/service-account/change-or-remove-service-account.md)
