--- title: "API: getUserWithRoleDetail" slug: "api-getuserwithroledetail" tags: ["home groups"] updated: 2022-09-20T19:34:07Z published: 2022-09-20T19:34:07Z canonical: "support.smarteru.com/api-getuserwithroledetail" --- > ## 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: getUserWithRoleDetail - 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 getUserWithRoleDetail method retrieves a [user's learning plans](/v1/docs/user-learning-plans-and-certifications). [Learning Plans](https://support.smarteru.com/docs/learning-plans) were previously referred to as *roles*.  ## Who Has Access The following users have access to the getUserWithRoleDetail method: - Users with the [Group Managers](/v1/docs/group-permission-group-manager-gm), [Manage Group Users](/v1/docs/group-permission-manage-group-users-mgu), or [Manage Users](/v1/docs/group-permission-manage-users-mu) group permission. - [Administrators and owners](/v1/docs/user-profile-information#access-level). ## API Call XML Package ```markup getUserWithRoleDetail - OR - - OR - ``` ## **User Tag Group** The User tag group is a container for the user filters. ```markup - OR - - OR - ``` The User tag contains one of the following. ### AccountUserRelID The user's system-generated identifier. This tag is mutually exclusive with the [Email](/v1/docs/api-getuserwithroledetail#email) and [](https://help.smarteru.com/api-getuserwithroledetail$user_EmployeeId)[EmployeeID](/v1/docs/api-getuserwithroledetail#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](/v1/docs/user-login-information#primary-email-required-if-employee-id-not-specified). This tag is mutually exclusive with the [AccountUserRelID](/v1/docs/api-getuserwithroledetail#accountuserrelid) and [EmployeeID](/v1/docs/api-getuserwithroledetail#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](/v1/docs/user-login-information#employee-id-required-if-primary-email-not-specified). This tag is mutually exclusive with the [AccountUserRelID](/v1/docs/api-getuserwithroledetail#accountuserrelid) and [Email](/v1/docs/api-getuserwithroledetail#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-getuserwithroledetail#error-codes) tag. ```markup <![CDATA[]]> ``` The User tag is a container for the user's learning plans returned by the getUserWithRoleDetail method and may contain the following. ### ID The user's system-generated identifier. ### Email The [user's email address](/v1/docs/user-login-information#primary-email-required-if-employee-id-not-specified). ### EmployeeID The [user's employee ID](/v1/docs/user-login-information#employee-id-required-if-primary-email-not-specified). ### CreatedDate The date the user was [created](/v1/docs/adding-a-user-manually). ### ModifiedDate The date the user was last [edited](/v1/docs/editing-a-user-manually). ### **GivenName** The [user's first name](/v1/docs/user-login-information#given-names-required). ### **Surname** The [user's last name](/v1/docs/user-login-information#surname-required). ### **Language** The [language](/v1/docs/user-login-information#language) used for the user's account. ### **AllowFeedback** Indicates whether the user can [provide feedback on online course tasks](https://support.smarteru.com/v1/docs/user-login-information#allow-feedback): - *1* - The user can provide feedback on online course tasks. - *0* - The user cannot provide feedback on online course tasks. ### Status The [user's status](/v1/docs/user-login-information#status): - *Active* - The user account may be used to access SmarterU. - *Inactive -* The user account may not be used to access SmarterU. ### AuthenticationType Indicates [how you would like the user to authenticate](https://support.smarteru.com/v1/docs/user-login-information#user-default-login): - *SmarterU* - The user will log into SmarterU via the SmarterU interface. - *External* - The user will log into SmarterU via an external system using [single-sign on](https://support.smarteru.com/v1/docs/external-authorization-sso). - *Both* - The user will log into SmarterU via the SmarterU interface or an external system. ### TimeZone The user's primary [time zone](https://support.smarteru.com/v1/docs/user-login-information#timezone-required). ### AlternateEmail The [user's alternate email address](https://support.smarteru.com/docs/user-login-information#send-email-to). ### HomeGroup The name of the user's [home group](/v1/docs/home-groups). ### Organization The [name of the user's organization](/v1/docs/user-profile-information#organization). ### Title The [user's title](/v1/docs/user-profile-information#title). ### Division The [user's division](https://support.smarteru.com/v1/docs/user-profile-information#division). ### Supervisors A container for [the user's supervisors](/v1/docs/user-profile-information#supervisors) [](https://help.smarteru.com/user-profile-information$setting_supervisor). ```markup ``` Each supervisor is contained in a Supervisor tag and contains the following. | Tag | Description | | --- | --- | | **Supervisor** | The supervisor's email address. | ### PhonePrimary The [user's primary phone number](/v1/docs/user-contact-information#phone-primary). ### PhoneAlternate The [user's alternate phone number](/v1/docs/user-contact-information#phone-alternate). ### PhoneMobile The [user's mobile phone number](/v1/docs/user-contact-information#phone-mobile). ### SendMailTo Indicates [where the user's physical mail should be sent](/v1/docs/user-contact-information#send-physical-mail-to): - *Personal -* The user's physical mail should be sent to their [personal address](https://support.smarteru.com/v1/docs/user-contact-information#address-line-1). - *Organization -* The user's physical mail should be sent to their [organization's address](https://support.smarteru.com/docs/organization-contact-information#address-line-1). ### SendEmailTo Indicates [where the user's emails should be sent](https://support.smarteru.com/v1/docs/user-login-information#send-email-to): - *Supervisor* -  Emails to the user will be sent to the supervisors' email addresses. If the user has multiple supervisors, emails will be sent to all of the user's supervisors. A [supervisor](https://support.smarteru.com/v1/docs/user-profile-information#supervisors) must have a primary email address specified for this option to be allowed. - *Self* - Emails to the user are sent to the user's primary email address. An [email address](https://support.smarteru.com/v1/docs/api-updateuser#email-optional) must be provided for this option to be allowed. - *Alternate* - Emails to the user will be sent to the email address specified in the AlternateEmail tag. For this option to be allowed, a valid email address must be provided in the AlternateEmail tag. ### Fax The [user's fax number](/v1/docs/user-contact-information#fax). ### Address1 The [first line of the user's address](/v1/docs/user-contact-information#address-line-1). ### Address2 The [second line of the user's address](/v1/docs/user-contact-information#address-line-2). ### City The [city of the user's address](/v1/docs/user-contact-information#city). ### PostalCode The [postal code of the user's address](/v1/docs/user-contact-information#postalzip-code). ### Province The [province or state of the user's address](/v1/docs/user-contact-information#region). This is the [full name of the province or state](/v1/docs/api-call-province-and-state-names-1). ### Country The [country of the user's address:](/v1/docs/user-contact-information#country) - *Canada* - *United States* - *International* ### SendWeeklyTaskReminder Indicates [whether the user should receive weekly reminders](https://support.smarteru.com/v1/docs/user-contact-information#send-weekly-task-reminder) of their pending or outstanding courses in SmarterU: - *1* - The user will receive weekly reminders. - *0* - The user will not receive weekly reminders. ### SendWeeklyProgressSummary Indicates [whether the user should receive weekly reports on the status of their supervisees](https://support.smarteru.com/v1/docs/user-contact-information#send-weekly-progress-summary): - *1* - The user will receive weekly reports on their supervisees. - *0* - The user will not receive weekly reports on their supervisees. ### Teams A container for the [user's teams](/v1/docs/user-team-information). Each team name is contained in a Team tag. ### Roles A container for the [user's learning plans](/v1/docs/user-learning-plans-and-certifications). Each learning plan is contained in a Role tag and contains the following. | Tag | Description | | --- | --- | | **Name** | The [learning plan's name](https://support.smarteru.com/v1/docs/learning-plan-main#name). | | **RoleID** | The [learning plan's user-specified identifier](https://support.smarteru.com/v1/docs/learning-plan-main#learning-plan-id). | ### CustomFields A container for the [custom user fields](/v1/docs/account-custom-user-fields). Each custom user field is contained in a CustomField tag and contains the following. | Tag | Description | | --- | --- | | **Name** | The [custom user field's name](https://support.smarteru.com/v1/docs/account-custom-user-fields#name). | | **Value** | The custom user field's value. | ### Venues A container for the [user's venues](/v1/docs/user-venues). Each venue is contained in a Venue tag and contains the following. | Tag | Description | | --- | --- | | **Name** | The [venue's name](https://support.smarteru.com/docs/venue-main#name-required). | | **Visibility** | Indicates whether the [venue is visible to the user by default](https://support.smarteru.com/v1/docs/user-venues): - *1* - The venue is visible to the user by default. - *0* - The venue is not visible to the user by default. | | **AutoWaitingList** | Not yet implemented. | ### Wages A container for the [user's wage information](/v1/docs/user-wage-information). Each wage is contained in a Wage tag and contains the following. | Tag | Description | | --- | --- | | **WageID** | The system-generated internal identifier for the user's wage. | | **EffectiveDate** | The [wage's effective date](/v1/docs/user-wage-information#effective-date). | | HourlyWage | The [hourly wage](/v1/docs/user-wage-information#hourly-wage). | ### ReceiveNotifications Indicates whether the user will [receive email notifications](/v1/docs/user-login-information#enable-email-notifications): - *True* - The user will receive email notifications. - *False -* The user will not receive email notifications. ### Example API Response XML Package Below is an example of an API response XML package. ```markup Success <![CDATA[Store Manager]]> Education Center - HQ 0 0 Retail Location - Chicago 0 0 Main Office 1 0 1 ``` ## **Error Codes** | Error Code | Message | | --- | --- | | GU:01 | The email address provided is not valid. | | GU:02 | The required permissions are not met to call the getUser method. | | GU:03 | The user requested does not exist. | | GU:04 | The requested user cannot be retrieved via the API. | | GU:05 | The account user rel id provided is not valid. | | GU:07 | The user requested does not have a Home Group. Home Group must be updated before additional information can be retrieved for this user. | ## Related - [API: createUser](/api-createuser.md) - [API: getRole](/api-getrole.md) - [API: getUser](/api-getuser.md) - [API: getUserGroups](/api-getusergroups.md) - [API: getUserSubscriptions](/api-getusersubscriptions.md) - [API: listUsers](/api-listusers.md) - [API: updateUser](/api-updateuser.md) - [Users ](/users.md)