List project members

People on a project with their user ID and roles.

GET https://cotlet.dev/api/v1/redmine/project-members

read

Returns the memberships of one project. Each item carries the user ID that assigned_to_id expects and the roles the person has there. A membership can come from a group; its roles are then marked inherited.

Parameters

Parameters: list_project_members
NameTypeDescription
project_id integer required integer Numeric project ID from list_projects. Redmine issue endpoints take the number, not the project identifier.
limit integer integer 1 to 100. Default: 25.
offset integer integer How many items to skip. Use offset + limit while it is below total_count.

Request

cURL
curl "https://cotlet.dev/api/v1/redmine/project-members?project_id=1" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("redmine", "list_project_members", {"project_id":1})
Node.js
const result = await cotlet.call('redmine', 'list_project_members', {"project_id":1});
CLI
cotlet call redmine list_project_members --data '{"project_id":1}'

Example response

JSON

{
  "members": [
    {
      "user_id": 31,
      "name": "Priya Nair",
      "roles": [
        "Developer"
      ]
    },
    {
      "user_id": 27,
      "name": "Tom Becker",
      "roles": [
        "Manager"
      ]
    }
  ],
  "total_count": 2
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.