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",
});
console.log(result);
}
run();{
"members": [
{
"confirmed": true,
"email": "jane.doe@example.com",
"role": "OWNER",
"uid": "zTuNVUXEAvvnNN3IaqinkyMw",
"username": "jane-doe",
"createdAt": 1588720733602,
"avatar": "123a6c5209bc3778245d011443644c8d27dc2c50",
"github": {
"login": "<string>"
},
"gitlab": {
"login": "<string>"
},
"bitbucket": {
"login": "<string>"
},
"name": "Jane Doe",
"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"
}
]
}
],
"pagination": {
"hasNext": true,
"count": 20,
"next": 1540095775951,
"prev": 1540095775951
},
"emailInviteCodes": [
{
"id": "<string>",
"isDSyncUser": true,
"accessGroups": [
"<string>"
],
"email": "<string>",
"role": "OWNER",
"teamRoles": [
"OWNER"
],
"teamPermissions": [
"IntegrationManager"
],
"createdAt": 123,
"expired": true,
"projects": {},
"entitlements": [
"<string>"
]
}
]
}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",
});
console.log(result);
}
run();{
"members": [
{
"confirmed": true,
"email": "jane.doe@example.com",
"role": "OWNER",
"uid": "zTuNVUXEAvvnNN3IaqinkyMw",
"username": "jane-doe",
"createdAt": 1588720733602,
"avatar": "123a6c5209bc3778245d011443644c8d27dc2c50",
"github": {
"login": "<string>"
},
"gitlab": {
"login": "<string>"
},
"bitbucket": {
"login": "<string>"
},
"name": "Jane Doe",
"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"
}
]
}
],
"pagination": {
"hasNext": true,
"count": 20,
"next": 1540095775951,
"prev": 1540095775951
},
"emailInviteCodes": [
{
"id": "<string>",
"isDSyncUser": true,
"accessGroups": [
"<string>"
],
"email": "<string>",
"role": "OWNER",
"teamRoles": [
"OWNER"
],
"teamPermissions": [
"IntegrationManager"
],
"createdAt": 123,
"expired": true,
"projects": {},
"entitlements": [
"<string>"
]
}
]
}Default authentication mechanism
Limit how many teams should be returned
x >= 120
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, SECURITY, BILLING, VIEWER, VIEWER_FOR_PLUS, CONTRIBUTOR "OWNER"
Exclude members who belong to the specified project.
Include team members who are eligible to be members of the specified project.
Show child attributes
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, SECURITY, BILLING, VIEWER, VIEWER_FOR_PLUS, CONTRIBUTOR "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"
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.
Show child attributes
teams, link, mail, import, github, gitlab, bitbucket, saml, dsync, feedback, organization-teams Show child attributes
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
Show child attributes
OWNER, MEMBER, DEVELOPER, SECURITY, BILLING, VIEWER, VIEWER_FOR_PLUS, CONTRIBUTOR OWNER, MEMBER, DEVELOPER, SECURITY, BILLING, VIEWER, VIEWER_FOR_PLUS, CONTRIBUTOR IntegrationManager, CreateProject, FullProductionDeployment, UsageViewer, EnvVariableManager, EnvironmentManager, V0Builder, V0Chatter, V0Viewer