Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Back to post

Revisions 2

2 years ago
Yong Sheng Tan
39 × 2 Administrator
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) ```
2 years ago
Original
Yong Sheng Tan
39 × 2 Administrator
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) ```