--- title: "API: updateUserSupervisorsByEmployeeID" slug: "api-updateusersupervisorsbyemployeeid" updated: 2026-11-05T15:23:44Z published: 2026-11-05T15:23:44Z canonical: "support.smarteru.com/api-updateusersupervisorsbyemployeeid" --- > ## 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: updateUserSupervisorsByEmployeeID - SmarterU requires all API calls to POST to HTTPS. Any POST to HTTP will result in the SU:01 error (i.e., No POST data detected.). - If you are viewing the help in a language other than English, please change your language to English before copying and pasting any code. All API attributes and functions are in English. - Tags are required unless specified. ## Description The updateUserSupervisorsByEmployeeID method adds or removes a user's [supervisors](/v1/docs/user-profile-information#supervisors) using each supervisor's employee ID. > [!NOTE] > - Administrators and owners cannot be updated through the API. > - A user cannot be set as their own supervisor. ## Who Has Access The following users have access to the updateUserSupervisorsByEmployeeID method: - [Administrators and owners.](/v1/docs/user-profile-information#access-level) ## API Call XML Package ```xml       updateUserSupervisorsByEmployeeID                                           - OR -                                                                                                 ``` The Identifier tag within the User tag group contains the information for the user you want to update. The Supervisors tag group specifies the supervisors to add to or remove from the user. ## User Tag Group The User tag group is a container for the user whose supervisors you want to update. ```xml                 - OR -                                         ``` The User tag contains the following. ### Identifier The identifier of the user you want to update. This tag contains one of the following. | Tag | Description | | --- | --- | | **Email** | The [user's email address](/v1/docs/user-login-information#primary-email-required-if-employee-id-not-specified). This tag is mutually exclusive with the EmployeeID tag. The email address can be up to 75 characters long. 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](/v1/docs/user-login-information#employee-id-required-if-primary-email-not-specified). This tag is mutually exclusive with the Email tag. The employee ID must be between 1 and 100 characters long. This is the EmployeeID returned by the [getUser](/v1/docs/api-getuser) and [listUsers](/v1/docs/api-listusers) methods. | ### Supervisors A container for the supervisors to add to or remove from the user. Refer to [Supervisors Tag Group](/v1/docs/api-updateusersupervisorsbyemployeeid#supervisors-tag-group). ## Supervisors Tag Group The Supervisors tag group is a container for the user's supervisors. The Supervisors tag must contain at least one Supervisor tag. ```xml                 ``` Each supervisor is contained in a Supervisor tag and contains the following. ### SupervisorEmployeeID The supervisor's employee ID. The supervisor must already exist within your SmarterU account, and cannot be the user being updated. The employee ID must be between 1 and 100 characters long. This is the EmployeeID returned by the [getUser](/v1/docs/api-getuser) and [listUsers](/v1/docs/api-listusers) methods. ### SupervisorAction Indicates whether the supervisor is to be added to or removed from the user. Acceptable values are: - *Add* - Adds the supervisor to the user. - *Remove* - Removes the supervisor from the user. In the following example, the supervisor with the employee ID E-10482 would be added to the user, and the supervisor with the employee ID E-20917 would be removed from the user. ```xml                                 ``` ## API Response XML Package The API response XML package will always include a Result, Info, and Errors tag. ```xml                                     ``` ### Example API Response XML Package Below is an example of an API response XML package. ```xml   Success       ``` ## Error Codes | Error Code | Message | | --- | --- | | UUSBE:01 | The email address provided is not valid. | | UUSBE:02 | The employee ID provided must be between 1-100 characters long. | | UUSBE:03 | The supervisor employee ID provided is not valid. | | UUSBE:04 | The required permissions are not met to call the updateUserSupervisorsByEmployeeID method. | | UUSBE:05 | The email address provided is not linked to a user in your account. | | UUSBE:06 | The employee ID provided is not linked to a user in your account. | | UUSBE:07 | The requested user cannot be updated via the API. | | UUSBE:08 | One or more supervisors provided cannot be used. | | UUSBE:09 | Account user update failed. | | UUSBE:10 | One or more supervisor actions is invalid. Accepted values are *Add* or *Remove*. | ## Related - [API: getUser](/api-getuser.md) - [API: listUsers](/api-listusers.md) - [Supervisors](/supervisors.md)