Set Default Team Members
Users & Authentication
Set Default Team Members
Set (replace) the list of default team members
POST
Set Default Team Members
Configure a list of members that will be automatically added to any new team/workspace you create. This endpoint replaces any existing default member configuration.Documentation Index
Fetch the complete documentation index at: https://docs.projectdiscovery.io/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
When you set default members:- Replaces any existing default member configuration
- Validates each member against your workspace plan limits
- Deduplicates members by email (keeps first occurrence)
- Applies to all future teams created by the owner
Request Body
Send an array of member objects, each containing:email(string, required): Member’s email addressrole(string, required): One ofADMIN,MEMBER,VIEWER, orGUEST
The
OWNER role cannot be assigned as a default member. Owner is always assigned automatically during team creation.Examples
Set Multiple Default Members
Clear All Default Members
Validation Rules
Email Validation
- Must be valid email format
- Invalid emails return
400error:"invalid email format: bad-email"
Role Validation
- Must be one of:
ADMIN,MEMBER,VIEWER,GUEST - Invalid roles return
400error:"invalid role: INVALID. Valid roles are: ADMIN, MEMBER, VIEWER, GUEST"
Plan Limits
- Default members count is validated against your workspace plan’s
MaxTeamMemberslimit (minus 1 for owner) - Exceeding limit returns
400error:"default members count (15) exceeds your plan limit of 10 members"
Common Errors
| Status | Scenario | Solution |
|---|---|---|
400 | Invalid email format | Verify email addresses are properly formatted |
400 | Invalid role | Use only: ADMIN, MEMBER, VIEWER, GUEST |
400 | Exceeds plan limit | Reduce number of default members or upgrade plan |
403 | Not owner/admin | Only team owners and admins can configure defaults |
Behavior During Team Creation
When a new team is created:- System checks if the owner has configured default members
- Each default member’s email must exist in the system
- If any email doesn’t correspond to an existing user, team creation returns
400error - Default members are directly added to the new team (no invitation flow)
- Owner is automatically skipped if present in default members list
Authorizations
Headers
Retrieve the Team ID from: https://cloud.projectdiscovery.io/settings/team
Body
application/json
Response
Example response