Skip to content

ListPermissions

Source: src/AWS/Grafana/ListPermissions.ts

Runtime binding for the ListPermissions operation (IAM action grafana:ListPermissions), scoped to one Workspace.

Lists the IAM Identity Center users and groups granted the ADMIN, EDITOR, or VIEWER role in the workspace, optionally filtered by user or group id. Provide the implementation with Effect.provide(AWS.Grafana.ListPermissionsHttp).

const listPermissions = yield* Grafana.ListPermissions(workspace);
const { permissions } = yield* listPermissions();
for (const entry of permissions) {
yield* Effect.logInfo(`${entry.user.id} → ${entry.role}`);
}