For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Role Policies

Updates role policies.

A role bundles one or more policies and is assigned to users to control what they can do β€” this is Norbix's role-based access control (RBAC). Roles are project-scoped and managed in the Membership module. This method updates the role policies β€” only the fields you send are changed.

This method is on the Hub surface (norbix.hub.membership) β€” call it from admin tooling or IaC.

These examples assume the SDK is installed and your credentials are set as environment variables β€” each client reads them automatically, so the constructors below take no arguments. See Install a Norbix SDK.

import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.membership.updateRolePolicies({
  id: 'pr_4kX9mQvR2tYw7ZbC1dFgHj_nr_4kX9mQvR2tYw7ZbC1dFgHj',
  roleName: 'content-editor',
  description: 'Can create and edit content, but not manage billing or members.',
  policies: ['pol_7Uhn615iG5KLwiIYGkxSIG', 'pol_1k4ufY10onE6beVi6Hp7I3'],
});
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Membership.UpdateRolePoliciesAsync(new UpdateRolePolicies
{
    Id = "pr_4kX9mQvR2tYw7ZbC1dFgHj_nr_4kX9mQvR2tYw7ZbC1dFgHj",
    RoleName = "content-editor",
    Description = "Can create and edit content, but not manage billing or members.",
    Policies = new[] { "pol_7Uhn615iG5KLwiIYGkxSIG", "pol_1k4ufY10onE6beVi6Hp7I3" },
});

In the dashboard

Manage this visually in Norbix Cloud β€” see Membership β†’ Roles.

API reference

Full request and response for this endpoint: Update Role Policies.

Last updated