Skip to content

Updating the user role from Health Administrator to Healthcare Administrator triggers a jurisdiction error, preventing user creation or update. #10902

@ThierryMyshepherd

Description

@ThierryMyshepherd

Description:
When attempting to update an existing user’s role from Health Administrator to Healthcare Administrator, the system throws a jurisdiction-related error and prevents the update from completing.
This occurs even when the target user and role are both associated with the same jurisdiction.

Steps to Reproduce:

  1. Log in as an admin user with permission to manage users.
  2. Edit an existing user with the role Health Administrator.
  3. Change the role to Healthcare Administrator.
  4. Keep the same jurisdiction and attempt to save.

Expected Result:
The system should successfully update the user’s role and preserve jurisdiction linkage.

{
"errors": [
{
"message": "Cannot create or update user in offices not under jurisdiction",
"locations": [
{ "line": 2, "column": 3 }
],
"path": ["createOrUpdateUser"],
"extensions": { "code": "INTERNAL_SERVER_ERROR" }
}
],
"data": null
}
Image
CSP blocks

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "default-src 'self' *.ecrvs.gov.so". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

Fetch API cannot load https://o4506977426669568.ingest.us.sentry.io/api/... Refused to connect because it violates the document's Content Security Policy.

Extension/port errors

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received.

Uncaught Error: Attempting to use a disconnected port object.

Asset access

GET https://minio.ecrvs.gov.so/ocrvs/ff2fdb3f-940a-43b5-ae34-ca4b37dce02d.jpg 403 (Forbidden)

Client config

client-config.js:1 Uncaught SyntaxError: Identifier 'scheme' has already been declared

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions