GET api/UserRoles_details/{UserId}
List User Roles Details by UserId
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
UserId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
user_role_response_dcName | Description | Type | Additional information |
---|---|---|---|
user_role_linked_info | Collection of get_user_role_data_dc |
None. |
|
user_role_attribute_linked_info | Collection of role_attribute_with_modules_dc |
None. |
Response Formats
application/json, text/json
Sample:
{ "user_role_linked_info": [ { "UserRoleId": 1, "RoleId": 1, "RoleName": "sample string 2", "Roledesc": "sample string 3", "IsActive": true, "CustomRole": true, "SystemId": 4, "CreatedBy": 1, "LastModifiedBy": 1, "LastUpdatedDateTime": "2025-07-18T16:04:56.0035611+00:00", "IsDeleted": true, "RoleType": "sample string 5", "OrgCodes": "sample string 6" }, { "UserRoleId": 1, "RoleId": 1, "RoleName": "sample string 2", "Roledesc": "sample string 3", "IsActive": true, "CustomRole": true, "SystemId": 4, "CreatedBy": 1, "LastModifiedBy": 1, "LastUpdatedDateTime": "2025-07-18T16:04:56.0035611+00:00", "IsDeleted": true, "RoleType": "sample string 5", "OrgCodes": "sample string 6" } ], "user_role_attribute_linked_info": [ { "RoleModuleId": 1, "Module": "sample string 2", "Access": "sample string 3", "RoleAttributeId": 1, "RoleId": 4, "Deleted": 1, "CreatedBy": 1, "LastModifiedBy": 1, "LastUpdatedDateTime": "2025-07-18T16:04:56.0035611+00:00", "IsDeleted": true }, { "RoleModuleId": 1, "Module": "sample string 2", "Access": "sample string 3", "RoleAttributeId": 1, "RoleId": 4, "Deleted": 1, "CreatedBy": 1, "LastModifiedBy": 1, "LastUpdatedDateTime": "2025-07-18T16:04:56.0035611+00:00", "IsDeleted": true } ] }
application/xml, text/xml
Sample:
<user_role_response_dc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplicationITTF1.Controllers"> <user_role_attribute_linked_info> <role_attribute_with_modules_dc> <CreatedBy>1</CreatedBy> <Deleted>1</Deleted> <IsDeleted>true</IsDeleted> <LastModifiedBy>1</LastModifiedBy> <LastUpdatedDateTime>2025-07-18T16:04:56.0035611+00:00</LastUpdatedDateTime> <RoleAttributeId>1</RoleAttributeId> <RoleId>4</RoleId> <RoleModuleId>0</RoleModuleId> <Access>sample string 3</Access> <Module>sample string 2</Module> <RoleModuleId>1</RoleModuleId> </role_attribute_with_modules_dc> <role_attribute_with_modules_dc> <CreatedBy>1</CreatedBy> <Deleted>1</Deleted> <IsDeleted>true</IsDeleted> <LastModifiedBy>1</LastModifiedBy> <LastUpdatedDateTime>2025-07-18T16:04:56.0035611+00:00</LastUpdatedDateTime> <RoleAttributeId>1</RoleAttributeId> <RoleId>4</RoleId> <RoleModuleId>0</RoleModuleId> <Access>sample string 3</Access> <Module>sample string 2</Module> <RoleModuleId>1</RoleModuleId> </role_attribute_with_modules_dc> </user_role_attribute_linked_info> <user_role_linked_info> <get_user_role_data_dc> <CreatedBy>1</CreatedBy> <CustomRole>true</CustomRole> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <LastModifiedBy>1</LastModifiedBy> <LastUpdatedDateTime>2025-07-18T16:04:56.0035611+00:00</LastUpdatedDateTime> <OrgCodes>sample string 6</OrgCodes> <RoleId>1</RoleId> <RoleName>sample string 2</RoleName> <RoleType>sample string 5</RoleType> <Roledesc>sample string 3</Roledesc> <SystemId>4</SystemId> <UserRoleId>1</UserRoleId> </get_user_role_data_dc> <get_user_role_data_dc> <CreatedBy>1</CreatedBy> <CustomRole>true</CustomRole> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <LastModifiedBy>1</LastModifiedBy> <LastUpdatedDateTime>2025-07-18T16:04:56.0035611+00:00</LastUpdatedDateTime> <OrgCodes>sample string 6</OrgCodes> <RoleId>1</RoleId> <RoleName>sample string 2</RoleName> <RoleType>sample string 5</RoleType> <Roledesc>sample string 3</Roledesc> <SystemId>4</SystemId> <UserRoleId>1</UserRoleId> </get_user_role_data_dc> </user_role_linked_info> </user_role_response_dc>