sdk.user.get()
elements.sdk.api.user
Get user details.
Returns the details of the specified users. If no user IDs are provided, returns details for the requesting user. The specified users must belong to the same department as the requesting user, otherwise an error is thrown.
Parameters
- ids (List[str]) - List of user IDs to retrieve
Returns
List[User] - List of user objects
Example(s)
# Get user details
users = await sdk.user.get(ids=["user-uuid-1", "user-uuid-2"])
# Output (List[User])
[
id: "user-uuid-1"
name: "John Doe"
email: "[email protected]"
user_collection_id: "department-uuid"
,
id: "user-uuid-2"
name: "Jane Smith"
email: "[email protected]"
user_collection_id: "department-uuid"
]Updated 6 months ago