create_membership
Create a project membership by assigning a user or group to one or more roles, with a preview step to validate changes before confirming.
Instructions
Create a project membership.
The preview is validated by OpenProject; problems come back in validation_errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | Yes | At least one; role ids or exact role names (case-insensitive), from list_roles. | |
| confirm | No | false: preview only, nothing changes. true: applies it; get the user's approval of the preview first. | |
| project | Yes | Project identifier, id, or name; a unique part of a name or identifier also matches. | |
| principal | Yes | User or group: numeric id, exact name (case-insensitive), or "me". | |
| notification_message | No | Markdown text for OpenProject's membership notification. |