My bot lacks permissions to
My bot lacks permissions to
What you should be using is the `list_users_by_ids()` method instead of `get_user_details()`, which calls an admin-level endpoint that retrieves complete user details instead of just the public profile that you require.
```python
# Normal user lookup endpoint
# https://developers.symphony.com/restapi/reference#users-lookup-v3
await self._users.list_users_by_ids([context.affected_user_id])
# Admin level user details endpoint
# https://developers.symphony.com/restapi/reference#get-user-v2
await self._users.get_user_detail(context.affected_user_id)
```
What you should be using is the `list_users_by_ids()` method instead of `get_user_details()`, which calls an admin-level endpoint that retrieves complete user details instead of just the public profile that you require.
```python
# Normal user lookup endpoint
# https://developers.symphony.com/restapi/reference#users-lookup-v3
await self._users.list_users_by_ids([context.initiator.user.user_id])
# Admin level user details endpoint
# https://developers.symphony.com/restapi/reference#get-user-v2
await self._users.get_user_detail(context.initiator.user.user_id)
```
My bot lacks permissions to
What you should be using is the `list_users_by_ids()` method instead of `get_user_details()`, which calls an admin-level endpoint that retrieves complete user details instead of just the public profile that you require.
```python
# Normal user lookup endpoint
# https://developers.symphony.com/restapi/reference#users-lookup-v3
await self._users.list_users_by_ids([context.initiator.user.user_id])
# Admin level user details endpoint
# https://developers.symphony.com/restapi/reference#get-user-v2
await self._users.get_user_detail(context.initiator.user.user_id)
```