--- title: "API: getUserSupervisees" slug: "api-getusersupervisees" updated: 2022-09-20T16:02:57Z published: 2022-09-20T16:02:57Z canonical: "support.smarteru.com/api-getusersupervisees" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.smarteru.com/llms.txt > Use this file to discover all available pages before exploring further. # API: getUserSupervisees ## Description The getUserSupervisees method retrieves the [user's supervisees](/v1/docs/user-supervisees). ## Who Has Access The following users have access to the getUserSupervisees method: - Users with the [Group Manager](/v1/docs/group-permission-group-manager-gm) or [Manage Users](/v1/docs/group-permission-manage-users-mu) group permission. - [Supervisors](https://support.smarteru.com/docs/user-profile-information#supervisors). If the [account's **Supervisor Access** setting's](https://support.smarteru.com/v1/docs/account-settings#supervisor-access)*View Supervisees* or *Edit Supervisees* option is checked, supervisors will also be able to run the getUserSupervisees for the users that they supervise. - [Administrators and owners](https://support.smarteru.com/docs/user-profile-information#access-level). ## API Call XML Package ```markup getUserSupervisees - OR - - OR - ``` ## User Tag Group The User tag group is a container for how the response is returned and the user/supervisor filters. ```markup - OR - - OR - ``` The User tag group may contain the following. ### Page (optional) The number page to return. The default is *1*. ### PageSize (optional) The maximum number of records to return. If the PageSize tag is not provided, up to 1000 results are returned by default. The maximum allowed value is 1000. ### SortOrder (optional) The direction that the results will be sorted: - *Asc* - The results will be sorted in ascending order. - *Desc* - The results will be sorted in descending order. The default is *Asc*. ### Identifier The Identifier tag must contain one of the following. | Tag | Description | | --- | --- | | **ID** | The user's system-generated identifier. This tag is mutually exclusive with the Email and EmployeeID tags. This is the ID returned by the [getUser](/v1/docs/api-getuser) and [listUsers](/v1/docs/api-listusers) methods. | | **Email** | The [user's email address](https://support.smarteru.com/docs/user-login-information#primary-email-required-if-employee-id-not-specified). This tag is mutually exclusive with the ID and EmployeeID tags. This is the Email returned by the [getUser](/v1/docs/api-getuser) and [listUsers](/v1/docs/api-listusers) methods. | | **EmployeeID** | The user's employee ID. This tag is mutually exclusive with the ID and Email tags. This is the EmployeeID returned by the [getUser](/v1/docs/api-getuser) and [listUsers](/v1/docs/api-listusers) methods. | ## API Response XML Package The [API response XML package](/v1/docs/api-response-xml-package) will always include a Result, Info, and [Errors](/v1/docs/api-getusersupervisees#error-codes) tag. ```markup ``` The UserSupervisees tag is a container for the supervisees returned by the getUserSupervisees method. Each supervisee is contained in a UserSupervisee tag and may contain the following. ### ID The supervisee's system-generated identifier. ### Email The [supervisee's email address](https://support.smarteru.com/docs/user-login-information#primary-email-required-if-employee-id-not-specified). ### EmployeeID The [supervisee's employee ID](https://support.smarteru.com/docs/user-login-information#employee-id-required-if-primary-email-not-specified). ### GivenName The [supervisee's first name](https://support.smarteru.com/docs/user-login-information#given-names-required). ### Surname The [supervisee's last name](https://support.smarteru.com/docs/user-login-information#surname-required). ### Example API Response XML Package Below is an example of an API response XML package. ```markup Success 2 ``` ## Error Codes | Error Code | Message | | --- | --- | | GUS:01 | The page number provided is not valid. | | GUS:02 | The page number provided is not valid. | | GUS:03 | The sort order provided is not valid. | | GUS:04 | The id provided is not valid. | | GUS:05 | The email address provided is not valid. | | GUS:06 | The employee ID provided is not valid. | | GUS:07 | The required permissions are not met to call the getUserSupervisees method. | | GUS:08 | The user requested does not exist. | | GUS:09 | The requested user cannot be retrieved via the API. | | GUS:10 | The value for the sort order must be ASC or DESC. | ## Related - [Adding and Removing Supervisors](/adding-and-removing-supervisors-1.md) - [Users ](/users.md)