Change a service account's role or remove it
Overview
This flow describes how to change the role of a service account in a government organization or a department. It also describes how to remove the service account from there.
Removing a service account from a government organization or a department does not delete it. Only a superuser can delete a service account.
Pre-requisites
- The service account has a role in the government organization or the department. See Add a service account to an organization or department.
- If the service account is in a government organization, the organization is on the Governance tab of your dashboard. It can also be a sub-organization of an organization on that tab.
- If the service account is in a department, you are a member of a department of that facility.
- You have the permissions listed below.
Permissions
| Permission | Access |
|---|---|
| Can List Users in an Organizations | Opens the Service accounts tab of a government organization. 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. |
| Can Manage Users in an Organization | Shows Change role in a government organization, and lets you change the role or remove the service account. Hold it in the organization or a parent organization. By default, the Administrator role holds it in a government organization. |
| Can View Facility Organizations | Lets you open the department. Hold it in any department of the facility. To open the root department of the facility, hold it in the root department. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Volunteer roles hold it. |
| Can List Users in a Facility Organizations | Lets you see the list on the Service accounts tab of a department. The tab itself shows without it. Care also checks this permission when you change the role or remove the service account. Hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor and Nurse roles hold it. |
| Can Manage Users in a Facility Organization | Shows Edit on the card of the service account. Lets you change the role or remove the service account in a department. Hold it in that department, a department above it, or the root department of the facility. By default, the Facility Admin and Administrator roles hold it. |
Note: Care checks the current role of the service account. When you change the role, Care also checks the new role. Each of these roles must have only permissions that you also have.
- In a government organization, Care counts your roles in the organization and its parent organizations.
- In a department, Care counts your roles in the department, the departments above it and the root department.
Steps
1. Open the Service accounts tab
- For a government organization, select the Governance tab on your dashboard. Select the organization. Then select the Service accounts tab.
- A sub-organization has its own Service accounts tab. To open a sub-organization, see Open a government organization.
- For a department, open the facility from the Facilities tab on your dashboard. Select Settings, then Departments. Open the department. Then select its Service accounts tab.

2. Open the Edit User Role form
- In a government organization, select Change role in the row of the service account.
- In a department, select Edit on the card of the service account.
Care opens the Edit User Role form.

3. Change the role
In Select New Role, select a different role.
The list shows the roles for that place. By default, these are:
- In a government organization: Volunteer, Doctor, Nurse, Staff and Administrator.
- In a department: Volunteer, Doctor, Nurse, Staff, Pharmacist, Administrator and Facility Admin.
Care accepts only a role whose permissions you also have there. For example, if your only role there is Administrator, Care accepts only the Administrator or Volunteer role. A Facility Admin can give any of the default department roles.
Select Update Role.
Note: In a government organization, Update Role stays disabled until you select a different role.
Note: Care does not let you change the role of the last Facility Admin in the root department of a facility.
If your roles do not allow the change, Care refuses it and keeps the current role.

4. Remove the service account
To remove the service account from this government organization or department, open the form again: select Change role in a government organization, or Edit in a department.
Select Remove User.
Care opens the Remove User from Organization dialog.
In a government organization, the dialog says that you cannot undo this action. Select Remove.
In a department, confirm the removal in the dialog.
Note: Care does not let you remove the last user from the root department of a facility.
If your roles do not allow the removal, Care refuses it.

Expected Outcome
- If you changed the role, the service account has the new role in the government organization or the department.
- If you removed the service account from a government organization, Care shows User removed from organization successfully.
- After a removal, the Service accounts tab no longer lists the service account. The service account stays in Care.
Related
Concepts:
Flows: