Files
authentik/website/docs/developer-docs/api/reference/rbac-permissions-roles-retrieve.api.mdx
Tana M Berry 7a6d44d0df first pass
2024-10-22 15:10:13 -05:00

407 lines
15 KiB
Plaintext

---
id: rbac-permissions-roles-retrieve
title: "rbac_permissions_roles_retrieve"
description: "Get a role's assigned object permissions"
sidebar_label: "rbac_permissions_roles_retrieve"
hide_title: true
hide_table_of_contents: true
api: eJytVt9v2zgM/lcEv9wNyMVFt4dDnq44FEWB7VZs3b1sRcDYTKxFkTyJThcE/t+PlJ1ErZ3hCvQlsSSKPz5+JLXPXI0eSDt7W2azzC+gmPPORofAe2HunUH+RfIat5hNshJD4XUtN1j+BkmBEqHfggK+s7JYKrf4jgWpRA9frMHDBgl9yGZf95mW6zVQxUeWD3ilS/4ORYUbyGb7jHZ13LWEK/RZ+9z2lWqs/tGg6iXUFoysSrSklzttV4oqHdTKu6Ye+jRlYx5/NNojR06+wfZhkhGsxL8IRMbrgEXjNe2iz9BQJcrXvHoQaY+h5ugwiL+XFxfyVzh2x5J8Ql0bXUR08+9BnN4P4+scGyD7JXBEJ2/Vo6ZKQVlqOQfTx/OHRwPEkJdAICB7ySfpziMGdIijeA3lR2t2fdQTdpkxizk4SgdOuF2NCW9Y2IxJkiYjG3c7qtjhKKcKw6xQUfmILgZobmAxrm8g3YU8r9dD6fZAov+h5mh0vkW/cGH01gjN61rFa2rp3SZJDTO/w+QcWC+z0+H2Yks9OE/0Dc3ZxrBmSZNcO28+2e+cACJg5pbd+VTdS2Ude4ciWCM3AFIGIdA36yymZOUq9buJAltySeIT7aKG41Chco+8WkaBhsmfS1dRFQTZ+Wa3Gh/naUGIVRY9ls8zRNq0ur8mTBsjQFICk64NHXB+msCeZaNop/x8OFXD9U/y8IlD+RhP744BZG07aGnC43ev2kb+BaPLLkfX3js/6BGcqvlSoynnKOchUQnew04AIdyEkZrrO8f4ySn7d6m99oTMybXOs7N4vH1FPG7QoteFurq7PQNIiQR6pCH9MtqUar2ChAO90V+EKa0CuW3KDF4hxXHJo3GW5TKI8mSSxrII+V6XbS7jEv32MFIbb+QG1Drfvs2zNhlfnwWeLr5kiB0jqYjqw+yV9QLBy8hlt7RduijZx3K6PsnEchfB5cXlu+mf08sB3h9gLYP4cKvLmgp6Uxucxrqz3FhiWjl/gntWoTHur5U7WppqJ+hzztF2XbR/MHy4vWcVXdgSQpjl+YrnZLOYFm6TJyry09fCuEXOpmz+/vbv638+X8cwaxdoAzZRLsCnT5j4yuHfM0+hhKEveRX1CSD8SXlt2CuJNEa07ynQv0XYxScXozf8P4vtSthWcQgivt8vIOAXb9pWtmPvlQcL5wu87ro/s6XUQb6ZcUsw4fksSMP5/VPP7jfqFd5coxEfOo6VfhN1SllMsjXuuodh+8BSFbd4pqV43x1cFQXWlFwZtAYpgmNl3VwLX4QKCfd7rk8OH6J91B3GNUrcuzVaxvbgHclaHGzb/wBkYPWw
sidebar_class_name: "get api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"rbac_permissions_roles_retrieve"}
>
</Heading>
<MethodEndpoint
method={"get"}
path={"/rbac/permissions/roles/{id}/"}
>
</MethodEndpoint>
Get a role's assigned object permissions
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<details
style={{"marginBottom":"1rem"}}
className={"openapi-markdown__details"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
>
<h3
className={"openapi-markdown__details-summary-header-params"}
>
Path Parameters
</h3>
</summary><div>
<ul>
<ParamsItem
className={"paramsItem"}
param={{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this group object permission.","required":true}}
>
</ParamsItem>
</ul>
</div>
</details><div>
<div>
<ApiTabs
label={undefined}
id={undefined}
>
<TabItem
label={"200"}
value={"200"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"id"}
required={true}
schemaName={"integer"}
qualifierMessage={undefined}
schema={{"type":"integer","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"codename"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"model"}
required={true}
schemaName={"Python model class name (string)"}
qualifierMessage={undefined}
schema={{"type":"string","title":"Python model class name","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"app_label"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"object_pk"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"name"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"app_label_verbose"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","description":"Get app label from permission's model","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"model_verbose"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","description":"Get model label from permission's model","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"object_description"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","nullable":true,"description":"Get model description from attached model. This operation takes at least\none additional query, and the description is only shown if the user/role has the\nview_ permission on the object","readOnly":true}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"id\": 0,\n \"codename\": \"string\",\n \"model\": \"string\",\n \"app_label\": \"string\",\n \"object_pk\": \"string\",\n \"name\": \"string\",\n \"app_label_verbose\": \"string\",\n \"model_verbose\": \"string\",\n \"object_description\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem><TabItem
label={"400"}
value={"400"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"non_field_errors"}
required={false}
schemaName={"string[]"}
qualifierMessage={undefined}
schema={{"type":"array","items":{"type":"string"}}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"code"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
name={"property name*"}
required={false}
schemaName={"any"}
qualifierMessage={undefined}
schema={{"type":"object","description":"Validation Error","properties":{"non_field_errors":{"type":"array","items":{"type":"string"}},"code":{"type":"string"}},"additionalProperties":{},"title":"ValidationError"}}
collapsible={false}
discriminator={false}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"non_field_errors\": [\n \"string\"\n ],\n \"code\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem><TabItem
label={"403"}
value={"403"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"detail"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"code"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"detail\": \"string\",\n \"code\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem>
</ApiTabs>
</div>
</div>