Version 4.0.26.22 (latest)

### Get information about all roles.

## Request

GET /roles Datatype Description Request HTTP Request query HTTP Query Expand HTTP Query definition... fields string Requested fields. ids string\[\] get_all_support_roles boolean Get all Looker support roles.

## Response

### 200: Role

Datatype Description (array) [Role](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Role)\[\] can object Operations the current user is able to perform on this object id string Unique Id name string Name of Role permission_set [PermissionSet](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/PermissionSet) (Read only) Permission set Expand PermissionSet definition... can object Operations the current user is able to perform on this object all_access boolean built_in boolean id string Unique Id name string Name of PermissionSet permissions string\[\] url string Link to get this item permission_set_id string (Write-Only) Id of permission set model_set [ModelSet](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/ModelSet) (Read only) Model set Expand ModelSet definition... can object Operations the current user is able to perform on this object all_access boolean built_in boolean id string Unique Id models string\[\] name string Name of ModelSet url string Link to get this item model_set_id string (Write-Only) Id of model set internal boolean Is this a Looker internal role url string Link to get this item users_url string Link to get list of users with this role

### 400: Bad Request

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 404: Not Found

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 429: Too Many Requests

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

## Examples

### Kotlin


|---|
| [https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestMethods.kt](https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestMethods.kt#L439 "https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestMethods.kt") |

### TypeScript


|---|
| [https://github.com/looker-open-source/sdk-codegen/blob/main/packages/hackathon/src/models/Hacker.ts](https://github.com/looker-open-source/sdk-codegen/blob/main/packages/hackathon/src/models/Hacker.ts#L350 "https://github.com/looker-open-source/sdk-codegen/blob/main/packages/hackathon/src/models/Hacker.ts") |

### Swift


|---|
| [https://github.com/looker-open-source/sdk-codegen/blob/main/swift/looker/Tests/lookerTests/smokeTests.swift](https://github.com/looker-open-source/sdk-codegen/blob/main/swift/looker/Tests/lookerTests/smokeTests.swift#L292 "https://github.com/looker-open-source/sdk-codegen/blob/main/swift/looker/Tests/lookerTests/smokeTests.swift") |