Endpoints
- access-groups
- artifacts
- checks
- projects
- deployments
- domains
- dns
- logDrains
- edge-config
- user
- marketplace
- integrations
- authentication
- projectMembers
- environment
- security
- teams
- webhooks
- aliases
- certs
List team members
Get a paginated list of team members for the provided team.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.teams.getTeamMembers({
limit: 20,
since: 1540095775951,
until: 1540095775951,
role: "OWNER",
});
// Handle the result
console.log(result);
}
run();
{
"members": [
{
"avatar": "123a6c5209bc3778245d011443644c8d27dc2c50",
"confirmed": true,
"email": "jane.doe@example.com",
"github": {
"login": "<string>"
},
"gitlab": {
"login": "<string>"
},
"bitbucket": {
"login": "<string>"
},
"role": "OWNER",
"uid": "zTuNVUXEAvvnNN3IaqinkyMw",
"username": "jane-doe",
"name": "Jane Doe",
"createdAt": 1588720733602,
"accessRequestedAt": 1588820733602,
"joinedFrom": {
"origin": "teams",
"commitId": "<string>",
"repoId": "<string>",
"repoPath": "<string>",
"gitUserId": "<string>",
"gitUserLogin": "<string>",
"ssoUserId": "<string>",
"ssoConnectedAt": 123,
"idpUserId": "<string>",
"dsyncUserId": "<string>",
"dsyncConnectedAt": 123
},
"projects": [
{
"name": "<string>",
"id": "<string>",
"role": "ADMIN"
}
]
}
],
"emailInviteCodes": [
{
"accessGroups": [
"<string>"
],
"id": "<string>",
"email": "<string>",
"role": "OWNER",
"isDSyncUser": true,
"createdAt": 123,
"expired": true,
"projects": {},
"entitlements": [
"<string>"
]
}
],
"pagination": {
"hasNext": true,
"count": 20,
"next": 1540095775951,
"prev": 1540095775951
}
}
Authorizations
Default authentication mechanism
Query Parameters
Limit how many teams should be returned
x >= 1
20
Timestamp in milliseconds to only include members added since then.
1540095775951
Timestamp in milliseconds to only include members added until then.
1540095775951
Search team members by their name, username, and email.
Only return members with the specified team role.
OWNER
, MEMBER
, DEVELOPER
, VIEWER
, BILLING
, CONTRIBUTOR
"OWNER"
Exclude members who belong to the specified project.
Include team members who are eligible to be members of the specified project.
Response
Boolean that indicates if this member was confirmed by an owner.
true
The email of this member.
"jane.doe@example.com"
Role of this user in the team.
OWNER
, MEMBER
, DEVELOPER
, VIEWER
, BILLING
, CONTRIBUTOR
, SECURITY
"OWNER"
The ID of this user.
"zTuNVUXEAvvnNN3IaqinkyMw"
The unique username of this user.
"jane-doe"
Timestamp in milliseconds when this member was added.
1588720733602
ID of the file for the Avatar of this member.
"123a6c5209bc3778245d011443644c8d27dc2c50"
Information about the Bitbucket account of this user.
The name of this user.
"Jane Doe"
Timestamp in milliseconds for when this team member was accepted by an owner.
1588820733602
Map with information about the members origin if they joined by requesting access.
teams
, link
, saml
, github
, gitlab
, bitbucket
, mail
, import
, dsync
, feedback
, organization-teams
Amount of items in the current page.
20
Timestamp that must be used to request the next page.
1540095775951
Timestamp that must be used to request the previous page.
1540095775951
OWNER
, MEMBER
, DEVELOPER
, VIEWER
, BILLING
, CONTRIBUTOR
, SECURITY
ADMIN
, PROJECT_DEVELOPER
, PROJECT_VIEWER
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.teams.getTeamMembers({
limit: 20,
since: 1540095775951,
until: 1540095775951,
role: "OWNER",
});
// Handle the result
console.log(result);
}
run();
{
"members": [
{
"avatar": "123a6c5209bc3778245d011443644c8d27dc2c50",
"confirmed": true,
"email": "jane.doe@example.com",
"github": {
"login": "<string>"
},
"gitlab": {
"login": "<string>"
},
"bitbucket": {
"login": "<string>"
},
"role": "OWNER",
"uid": "zTuNVUXEAvvnNN3IaqinkyMw",
"username": "jane-doe",
"name": "Jane Doe",
"createdAt": 1588720733602,
"accessRequestedAt": 1588820733602,
"joinedFrom": {
"origin": "teams",
"commitId": "<string>",
"repoId": "<string>",
"repoPath": "<string>",
"gitUserId": "<string>",
"gitUserLogin": "<string>",
"ssoUserId": "<string>",
"ssoConnectedAt": 123,
"idpUserId": "<string>",
"dsyncUserId": "<string>",
"dsyncConnectedAt": 123
},
"projects": [
{
"name": "<string>",
"id": "<string>",
"role": "ADMIN"
}
]
}
],
"emailInviteCodes": [
{
"accessGroups": [
"<string>"
],
"id": "<string>",
"email": "<string>",
"role": "OWNER",
"isDSyncUser": true,
"createdAt": 123,
"expired": true,
"projects": {},
"entitlements": [
"<string>"
]
}
],
"pagination": {
"hasNext": true,
"count": 20,
"next": 1540095775951,
"prev": 1540095775951
}
}