UpdatePermissions
Source:
src/AWS/Grafana/UpdatePermissions.ts
Runtime binding for the UpdatePermissions operation (IAM action
grafana:UpdatePermissions), scoped to one Workspace.
Grants or revokes the ADMIN, EDITOR, or VIEWER role for IAM Identity
Center users and groups in the workspace. Rejected instructions come back
in the response’s errors list rather than failing the call. Provide the
implementation with Effect.provide(AWS.Grafana.UpdatePermissionsHttp).
Managing Permissions
Section titled “Managing Permissions”const updatePermissions = yield* Grafana.UpdatePermissions(workspace);
const { errors } = yield* updatePermissions({ updateInstructionBatch: [ { action: "ADD", role: "EDITOR", users: [{ id: userId, type: "SSO_USER" }], }, ],});// errors → [] when every instruction applied