users_jsons_list = dl.projects.list_members(project_id='project_id', role=dl.MemberRole.DEVELOPER) # # Get a list of the project members. # # **Prerequisites**: You must be in the role of an *owner* to list project members. # # :param dtlpy.entities.project.Project project: Project object # :param role: The required role for the user. Use the enum dl.MemberRole # :return: list of the project members # :rtype: list # #
[- {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "avatar": "string",
- "projects": [
- "string"
], - "groups": [
- {
- "id": "string",
- "name": "string"
}
], - "org": {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "role": "string",
- "name": "string",
- "logoUrl": "string",
- "members": [
- { }
], - "groups": [
- {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "name": "string",
- "org": { },
- "owner": { },
- "creator": { },
- "members": [
- { }
], - "defaultProjectRole": "owner",
- "projects": [
- {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "name": "string",
- "contributors": [
- null
], - "groups": [
- null
], - "creator": { },
- "org": { },
- "account": {
- "id": null,
- "url": null,
- "createdAt": null,
- "updatedAt": null,
- "name": null,
- "owner": null,
- "org": null,
- "creator": null
}, - "featureConstraints": [
- null
], - "guests": [
- null
], - "role": "string",
- "archived": true
}
]
}
], - "owner": { },
- "account": {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "name": "string",
- "owner": { },
- "org": { },
- "creator": { }
}, - "creator": { },
- "plan": "freemium",
- "integrations": [
- {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "name": "string",
- "type": "string",
- "org": { },
- "creator": { },
- "metadata": [
- {
- "id": "string",
- "url": "string",
- "createdAt": 0,
- "updatedAt": 0,
- "name": "string",
- "value": "string",
- "integration": { }
}
]
}
], - "industry": "string",
- "size": "string"
}, - "orgs": [
- "string"
], - "type": "string",
- "lastLogin": 0,
- "interest": "string",
- "boarded": true,
- "hash": "string",
- "timezone": "string",
- "created": true,
- "inviteEmail": "string",
- "status": "string",
- "member": "string",
- "guest": {
- "name": "string",
- "org": "string",
- "id": "string"
}, - "denyMembersManagement": true,
- "defaultProjectRole": "owner"
}
]