diff --git a/ccm-core-apiclient/src/main/typescript/clients/users.ts b/ccm-core-apiclient/src/main/typescript/clients/users-api.ts similarity index 98% rename from ccm-core-apiclient/src/main/typescript/clients/users.ts rename to ccm-core-apiclient/src/main/typescript/clients/users-api.ts index 591640e22..54a1a1e11 100644 --- a/ccm-core-apiclient/src/main/typescript/clients/users.ts +++ b/ccm-core-apiclient/src/main/typescript/clients/users-api.ts @@ -282,10 +282,10 @@ export class UsersApiClient { roleIdentifier: string | number ): Promise { try { - const groupParam = buildIdentifierParam(userIdentifier); + const userParam = buildIdentifierParam(userIdentifier); const roleParam = buildIdentifierParam(roleIdentifier); const response: ApiResponse = await this.#apiClient.put( - `${this.#USERS_API_PREFIX}/${groupParam}/roles/${roleParam}` + `${this.#USERS_API_PREFIX}/${userParam}/roles/${roleParam}` ); if (response.ok) { return;