Create Policy
Create a new custom policy for project.
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();
const result = await norbix.hub.membership.createPolicy({
policyName: 'articles-editor',
description: 'Read and write access to the articles collection.',
policyDocumentJson: '{"allow":["articles:read","articles:write"]}',
});using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;
using var client = new NorbixClient();
var result = await client.Membership.CreatePolicyAsync(new CreatePolicy
{
PolicyName = "articles-editor",
Description = "Read and write access to the articles collection.",
PolicyDocumentJson = "{\"allow\":[\"articles:read\",\"articles:write\"]}",
});from norbix_python import NorbixHub
norbix = NorbixHub()
result = norbix.membership.create_policy(
policyName="articles-editor",
description="Read and write access to the articles collection.",
policyDocumentJson="{\"allow\":[\"articles:read\",\"articles:write\"]}",
)In the dashboard
API reference
Last updated