(user_id: str)
| 1802 | roles = role_manager.list_roles() |
| 1803 | for role in roles.get("roles") or []: |
| 1804 | user_id = str(role.get("user_id") or "").strip() |
| 1805 | if not user_id: |
| 1806 | continue |
| 1807 | users[user_id] = { |
| 1808 | "user_id": user_id, |
| 1809 | "role_name": role.get("name"), |
| 1810 | "description": role.get("description", ""), |
| 1811 | "is_current": bool(role.get("is_current")), |
| 1812 | "source": "roles.json", |
| 1813 | } |
| 1814 | except Exception: |
| 1815 | pass |
| 1816 |