Skip to main content
Version: 3.1

Service account

Definition​

A service account in Care is an account for another system, such as an application, and not for a person. The system uses the account to reach Care.

The system reaches Care with a token, a secret key that is generated on the profile of the service account. Anyone who has the token can access Care as the service account.

Key Attributes​

ComponentsWhat it captures
First NameThe first part of the name of the service account. This attribute is required.
Last NameThe last part of the name of the service account. This attribute is required.
UsernameThe name that identifies the service account in Care. It has 4 to 16 characters: lowercase letters, numbers, underscores (_) and hyphens (-). This attribute is required.
EmailAn email address for the service account. Care does not send it an email to set a password. This attribute is required.
Phone NumberA phone number of at most 14 characters. This attribute is required.
GenderThe gender recorded for the service account. This attribute is required.
Government organizationA government organization that Care records on the service account. It does not add the service account to that organization. This attribute is optional.
Responsibility AssignmentsThe responsibilities of the service account, each with a designation. This attribute is optional.
TokenThe secret key that the system uses to reach Care. A service account has one token at most.

Where you create a service account​

You create a service account from the Service accounts tab of a government organization or of a sub-organization.

You can also create one from the Service accounts tab of a department of a facility.

A responsibility has no Service accounts tab.

The form is the form that creates a person's account, with fewer fields. It has no Password Setup Method and no Professional profile.

How a service account gets access​

A service account gets access in the same way as a person: through roles in government organizations, departments and responsibilities.

Creating a service account does not add it to the government organization or the department where you create it. The government organization that you select in the form is only recorded on the account.

The service account gets access when someone gives it a role in the government organization or the department with Link Service Account. Right after you create the service account, Care opens this form if you can manage the users of that place.

Care accepts only a role whose permissions the person giving it also has there. By default, an Administrator can give only the Administrator or Volunteer role, and a Facility Admin can give any of the default department roles.

Until the service account has a role in that place, it does not show in the Service accounts list. The list shows only the service accounts that have a role in that place.

Rows that you add under Role in this organization add the service account to those responsibilities, with the designation that you select.

The search in Link Service Account shows every service account in Care, not only the ones that you created.

A role is changed or removed with Change role in a government organization, or with Edit in a department.

What a service account does not have​

A service account that you create in Care has no password. Care does not ask for a password when you create it, and it sends no email to set one.

A service account has no professional profile, so it has no languages and no qualifications.

Its profile shows a Service account badge next to the username. The Security tab of its profile shows only to a superuser.

The token​

The token is managed in the Manage Token section of the profile of the service account. Care shows Manage Token only to the person who created the service account. No role or permission gives this access.

Care shows a new token one time only, right after it is generated.

A service account has one token at most. When a new token is generated, Care deletes the old one. The screen warns that a new token makes any earlier token invalid.

A token has no expiry date in Care, and Care has no setting for one.

For the steps, see Generate a token for a service account and Revoke a service account's token.

What only a superuser can do​

Only a superuser can delete a service account. After the service account is created, no person except a superuser can edit its details.

How to stop a service account​

Revoking the token stops the system from reaching Care with that token. Care deletes the token, and the confirmation says that applications that use it lose access at once.

Removing the service account from a government organization or a department takes away the access that its role there gave it. Removing it does not delete the service account.

Who can work with service accounts​

PermissionWhat it allows
Can create service account in careCreate a service account. Care shows Add Service Account if you hold it in the government organization or a parent organization. In a department, Care shows it if you hold it in any department of the facility. To save, Care accepts it from a role in any government organization, responsibility or department. By default, the Administrator role holds it in a government organization, the Facility Admin and Administrator roles hold it in a facility, and the Admin designation holds it in a responsibility.
Can List Users in an OrganizationsOpen the Service accounts tab of a government organization and see its list. 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 OrganizationGive a service account a role in a government organization, change that role, or remove the service account. Hold it in the organization or a parent organization. When you create a service account, it also lets you add the service account to a responsibility: hold it in that responsibility. By default, the Administrator role holds it in a government organization, and the Admin designation holds it in a responsibility.
Can Manage Connected Role OrganizationsWhen you create a service account, add it to a responsibility that a responsibility of yours manages. Hold it in the responsibility that manages it. By default, the Admin and Manager designations hold it.
Can View Facility OrganizationsSee the departments of a facility and open one. 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 OrganizationsSee the Service accounts list of a department. Hold it in any department of the facility. Care also checks it when you change the role or remove the service account. By default, the Facility Admin, Administrator, Staff, Doctor and Nurse roles hold it.
Can Manage Users in a Facility OrganizationGive a service account a role in a department, change that role, or remove the service account. 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.

The role or designation that you give must not have a permission that your own roles there do not have. When you change or remove a role, the current role must also meet this rule.

No permission shows Manage Token. Care shows it only to the person who created the service account.