Skip to content

Create new composite user policy

POST
/internal/v2/{bucket}/user_policy/standard

Create a composite user policy from a set of standard policies For example create a team leader policy user_type=team-leader and assign a set of policies to it policies=base,group,team-leader

bucket
required

The bucket (client) name

string
Example
example
policies
required
string
Allowed values: achievement base base-ro events events-management evidence evidence-read-only form-admin form-response gdpr group group-add-member group-members health-edi membership membership-ro notifications payment person person-ro send-messages session team-leader team-leader-with-applications tasks-and-notes vehicle vehicle-ro
user_type
required
string

The name of the new user policy

name
string

Optional name for the policy

Successful operation

A standard error message

object
description

A human readable description of the error

string
error

A concise error message

string
type

A machine readable error type

string

Unauthorized is the status code to return when the client provides no credentials or invalid credentials.

Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.

Not found

An error occurred within sheepCRM, please report to support@sheepcrm.com