From 34e775113010e9c505144c65ade29d3abe72aa6d Mon Sep 17 00:00:00 2001 From: Asaf Shen Date: Sat, 20 Apr 2024 17:39:31 +0300 Subject: [PATCH] fix remove tenant roles --- examples/management-cli/pom.xml | 4 ++-- pom.xml | 2 +- src/main/java/com/descope/sdk/mgmt/impl/UserServiceImpl.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/management-cli/pom.xml b/examples/management-cli/pom.xml index bc060f0e..0f5d9880 100644 --- a/examples/management-cli/pom.xml +++ b/examples/management-cli/pom.xml @@ -19,7 +19,7 @@ com.descope java-sdk - 1.0.19 + 1.0.20 info.picocli @@ -85,4 +85,4 @@ - \ No newline at end of file + diff --git a/pom.xml b/pom.xml index b17f36ed..9986248d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.descope java-sdk 4.0.0 - 1.0.19 + 1.0.20 ${project.groupId}:${project.artifactId} Java library used to integrate with Descope. https://github.com/descope/descope-java diff --git a/src/main/java/com/descope/sdk/mgmt/impl/UserServiceImpl.java b/src/main/java/com/descope/sdk/mgmt/impl/UserServiceImpl.java index de01f93a..ef2d9b09 100644 --- a/src/main/java/com/descope/sdk/mgmt/impl/UserServiceImpl.java +++ b/src/main/java/com/descope/sdk/mgmt/impl/UserServiceImpl.java @@ -466,7 +466,7 @@ public UserResponseDetails removeTenantRoles(String loginId, String tenantId, Li throw ServerCommonException.invalidArgument("Login ID"); } URI removeTenantRolesUri = composeRemoveTenantRolesUri(); - Map request = mapOf("loginId", loginId, "tenantId", "", "roleNames", roles); + Map request = mapOf("loginId", loginId, "tenantId", tenantId, "roleNames", roles); ApiProxy apiProxy = getApiProxy(); return apiProxy.post(removeTenantRolesUri, request, UserResponseDetails.class); }