Skip to content

Commit

Permalink
add tenent domain
Browse files Browse the repository at this point in the history
  • Loading branch information
shashimalcse committed Aug 25, 2023
1 parent de361ae commit 1fcae41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4243,7 +4243,7 @@ private void setRolesOfUser(List<String> rolesOfUser, Map<String, Group> groupMe
// Add application roles of the user
try {
List<ApplicationRole> applicationRoles = SCIMCommonComponentHolder.getApplicationRoleManager()
.getApplicationRolesByUserId(scimUser.getId());
.getApplicationRolesByUserId(scimUser.getId(), tenantDomain);
for(ApplicationRole applicationRole: applicationRoles) {
Role role = new Role();
role.setDisplayName(applicationRole.getRoleName());
Expand Down Expand Up @@ -4483,7 +4483,7 @@ private void setGroupRoles(Group group) throws org.wso2.carbon.user.core.UserSto
// Add application roles of the group
try {
List<ApplicationRole> applicationRoles = SCIMCommonComponentHolder.getApplicationRoleManager()
.getApplicationRolesByGroupId(group.getId());
.getApplicationRolesByGroupId(group.getId(), tenantDomain);
for(ApplicationRole applicationRole: applicationRoles) {
Role role = new Role();
role.setDisplayName(applicationRole.getRoleName());
Expand Down

0 comments on commit 1fcae41

Please sign in to comment.