Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

WithAccessControlMetadata interface

With RBAC, the backend will return additional access control metadata to objects. These metadata will contain user permissions associated to a given resource.

For example: { accessControl: { “datasources:read”: true, “datasources:write”: true } }

Signature

typescript
export interface WithAccessControlMetadata 

Import

typescript
import { WithAccessControlMetadata } from '@grafana/data';

Properties

PropertyTypeDescription
accessControlKeyValue<boolean>

accessControl property

Signature

typescript
accessControl?: KeyValue<boolean>;