add_group_member
Add a user to a GitLab group by specifying group ID, user ID, and access level. Uses dry-run mode by default for safety preview before execution.
Instructions
Add a user to a group with a given access level. dry_run=true by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | ID ou chemin URL du groupe GitLab (ex: '42' ou 'wanadev/kp1'). Si vous n'avez que le nom, appelez d'abord list_groups pour trouver le chemin exact. | |
| user_id | Yes | Numeric user ID (resolve from search_users) | |
| access_level | Yes | Access level: 10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner. | |
| expires_at | No | Optional expiration date (YYYY-MM-DD) | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |