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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"principal": "<principal>",
"roles": "<roles>"
},
"name": "create_membership"
}
}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. |