@@ -55,7 +55,7 @@ def create(
5555 :param users: the details of the new users
5656 :param return_info: whether to return the details of created users, defaults to `False`
5757 :raises AtlanError: on any API communication issue
58- :returns: the list of details of created users if `return_info` is `True`, otherwise `None`
58+ :returns: a UserResponse object which contains the list of details of created users if `return_info` is `True`, otherwise `None`
5959 """
6060 from pyatlan .client .atlan import AtlanClient
6161
@@ -203,12 +203,12 @@ def get_all(
203203 sort : Optional [str ] = "username" ,
204204 ) -> UserResponse :
205205 """
206- Retrieve all users defined in Atlan.
206+ Retrieve a UserResponse object containing a list of all users defined in Atlan.
207207
208208 :param limit: maximum number of users to retrieve
209209 :param offset: starting point for the list of users when paging
210210 :param sort: property by which to sort the results, by default : `username`
211- :returns: a list of all the users in Atlan
211+ :returns: a UserResponse object with all users based on the parameters; results are iterable.
212212 """
213213 response : UserResponse = self .get (offset = offset , limit = limit , sort = sort )
214214 return response
@@ -221,7 +221,7 @@ def get_by_email(
221221 offset : int = 0 ,
222222 ) -> Optional [UserResponse ]:
223223 """
224- Retrieves all users with email addresses that contain the provided email.
224+ Retrieves a UserResponse object containing a list of users with email addresses that contain the provided email.
225225 (This could include a complete email address, in which case there should be at
226226 most a single item in the returned list, or could be a partial email address
227227 such as "@example.com" to retrieve all users with that domain in their email
@@ -230,7 +230,7 @@ def get_by_email(
230230 :param email: on which to filter the users
231231 :param limit: maximum number of users to retrieve
232232 :param offset: starting point for the list of users when pagin
233- :returns: all users whose email addresses contain the provided string
233+ :returns: a UserResponse object containing a list of users whose email addresses contain the provided string
234234 """
235235 response : UserResponse = self .get (
236236 offset = offset ,
@@ -247,12 +247,12 @@ def get_by_emails(
247247 offset : int = 0 ,
248248 ) -> Optional [UserResponse ]:
249249 """
250- Retrieves all users with email addresses that match the provided list of emails.
250+ Retrieves a UserResponse object containing a list of users with email addresses that match the provided list of emails.
251251
252252 :param emails: list of email addresses to filter the users
253253 :param limit: maximum number of users to retrieve
254254 :param offset: starting point for the list of users when paginating
255- :returns: list of users whose email addresses match the provided list
255+ :returns: a UserResponse object containing a list of users whose email addresses match the provided list
256256 """
257257 email_filter = '{"email":{"$in":' + dumps (emails or ["" ]) + "}}"
258258 response : UserResponse = self .get (
@@ -283,12 +283,12 @@ def get_by_usernames(
283283 self , usernames : List [str ], limit : int = 5 , offset : int = 0
284284 ) -> Optional [UserResponse ]:
285285 """
286- Retrieves users based on their usernames.
286+ Retrieves a UserResponse object containing a list of users based on their usernames.
287287
288288 :param usernames: the list of usernames by which to find the users
289289 :param limit: maximum number of users to retrieve
290290 :param offset: starting point for the list of users when paginating
291- :returns: the users with the specified usernames
291+ :returns: a UserResponse object containing list of users with the specified usernames
292292 """
293293 username_filter = '{"username":{"$in":' + dumps (usernames or ["" ]) + "}}"
294294 response : UserResponse = self .get (
0 commit comments