Skip to content

Permissions client: Grant entity

Grant entity permissions to a NIP-identified entity.

Called on auth.permissions
Source src/ksef2/clients/permissions.py:110 Generated from async source src/ksef2/clients/async_permissions.py
auth.permissions.grant_entity
auth.permissions.grant_entity(*, subject_value: str, permissions: list[EntityPermission], description: str, entity_name: str) -> GrantPermissionsResponse

Returns

GrantPermissionsResponse

Parameters

subject_value str
required / keyword-only
permissions list[EntityPermission]
required / keyword-only
description str
required / keyword-only
entity_name str
required / keyword-only
Called on auth.permissions
Source src/ksef2/clients/async_permissions.py:107 Authored source
await auth.permissions.grant_entity
await auth.permissions.grant_entity(*, subject_value: str, permissions: list[EntityPermission], description: str, entity_name: str) -> GrantPermissionsResponse

Returns

GrantPermissionsResponse

Parameters

subject_value str
required / keyword-only
permissions list[EntityPermission]
required / keyword-only
description str
required / keyword-only
entity_name str
required / keyword-only