GET api/Account/GetUserRoles?Username={Username}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Username

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of AspNetRole
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

isDriver

boolean

None.

AspNetUserRoles

Collection of AspNetUserRole

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "isDriver": true,
    "AspNetUserRoles": [
      {
        "UserId": "sample string 1",
        "RoleId": "sample string 2",
        "Id": 3,
        "AspNetUser": {
          "Id": "sample string 1",
          "Email": "sample string 2",
          "EmailConfirmed": true,
          "PasswordHash": "sample string 4",
          "SecurityStamp": "sample string 5",
          "PhoneNumber": "sample string 6",
          "PhoneNumberConfirmed": true,
          "TwoFactorEnabled": true,
          "LockoutEndDateUtc": "2021-11-30T23:02:00.1848511+02:00",
          "LockoutEnabled": true,
          "AccessFailedCount": 10,
          "UserName": "sample string 11",
          "FirstName": "sample string 12",
          "LastName": "sample string 13",
          "Image": "sample string 14",
          "AspNetUserClaims": [
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            },
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            }
          ],
          "AspNetUserLogins": [
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            },
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            }
          ],
          "AspNetUserRoles": []
        }
      },
      {
        "UserId": "sample string 1",
        "RoleId": "sample string 2",
        "Id": 3,
        "AspNetUser": {
          "Id": "sample string 1",
          "Email": "sample string 2",
          "EmailConfirmed": true,
          "PasswordHash": "sample string 4",
          "SecurityStamp": "sample string 5",
          "PhoneNumber": "sample string 6",
          "PhoneNumberConfirmed": true,
          "TwoFactorEnabled": true,
          "LockoutEndDateUtc": "2021-11-30T23:02:00.1848511+02:00",
          "LockoutEnabled": true,
          "AccessFailedCount": 10,
          "UserName": "sample string 11",
          "FirstName": "sample string 12",
          "LastName": "sample string 13",
          "Image": "sample string 14",
          "AspNetUserClaims": [
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            },
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            }
          ],
          "AspNetUserLogins": [
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            },
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            }
          ],
          "AspNetUserRoles": []
        }
      }
    ]
  },
  {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "isDriver": true,
    "AspNetUserRoles": [
      {
        "UserId": "sample string 1",
        "RoleId": "sample string 2",
        "Id": 3,
        "AspNetUser": {
          "Id": "sample string 1",
          "Email": "sample string 2",
          "EmailConfirmed": true,
          "PasswordHash": "sample string 4",
          "SecurityStamp": "sample string 5",
          "PhoneNumber": "sample string 6",
          "PhoneNumberConfirmed": true,
          "TwoFactorEnabled": true,
          "LockoutEndDateUtc": "2021-11-30T23:02:00.1848511+02:00",
          "LockoutEnabled": true,
          "AccessFailedCount": 10,
          "UserName": "sample string 11",
          "FirstName": "sample string 12",
          "LastName": "sample string 13",
          "Image": "sample string 14",
          "AspNetUserClaims": [
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            },
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            }
          ],
          "AspNetUserLogins": [
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            },
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            }
          ],
          "AspNetUserRoles": []
        }
      },
      {
        "UserId": "sample string 1",
        "RoleId": "sample string 2",
        "Id": 3,
        "AspNetUser": {
          "Id": "sample string 1",
          "Email": "sample string 2",
          "EmailConfirmed": true,
          "PasswordHash": "sample string 4",
          "SecurityStamp": "sample string 5",
          "PhoneNumber": "sample string 6",
          "PhoneNumberConfirmed": true,
          "TwoFactorEnabled": true,
          "LockoutEndDateUtc": "2021-11-30T23:02:00.1848511+02:00",
          "LockoutEnabled": true,
          "AccessFailedCount": 10,
          "UserName": "sample string 11",
          "FirstName": "sample string 12",
          "LastName": "sample string 13",
          "Image": "sample string 14",
          "AspNetUserClaims": [
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            },
            {
              "Id": 1,
              "UserId": "sample string 2",
              "ClaimType": "sample string 3",
              "ClaimValue": "sample string 4"
            }
          ],
          "AspNetUserLogins": [
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            },
            {
              "LoginProvider": "sample string 1",
              "ProviderKey": "sample string 2",
              "UserId": "sample string 3"
            }
          ],
          "AspNetUserRoles": []
        }
      }
    ]
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.