Skip to content

Commit 3efa4ef

Browse files
authored
Merge pull request #8034 from chaen/integration_fix_iamORder
fix (iam): correct user mapping for DiracX CsSync
2 parents 9343151 + c59dd63 commit 3efa4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DIRAC/Core/Security/IAMService.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def getUsers(self):
151151
def getUsersSub(self) -> dict[str, str]:
152152
"""
153153
Return the mapping based on IAM sub:
154-
{sub : nickname}
154+
{nickname : sub}
155155
156156
"""
157157
iam_users_raw = self._getIamUserDump()
@@ -171,7 +171,7 @@ def getUsersSub(self) -> dict[str, str]:
171171
nickname = user_info["userName"]
172172
sub = user_info["id"]
173173

174-
diracx_user_section[sub] = nickname
174+
diracx_user_section[nickname] = sub
175175

176176
# reorder it
177177
diracx_user_section = dict(sorted(diracx_user_section.items()))

0 commit comments

Comments
 (0)