Manage teams
Get teams
List all the teams present in an organization account on BrowserStack.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X GET "https://api.browserstack.com/user/team_detail"
No parameter required.
Response attributes 200
application/json
Response
{
"count": 2,
"team_details": [
{
"name": "MobileTesting",
"created_at": "2021-09-12T14:57:00.000Z",
"parallels_allocated": {
"automate": {
"val": 5,
"type": "Org"
},
"app_automate": {
"val": 2,
"type": "Team"
}
},
"user_count": 1,
"user_details": [
{
"id": 5105827,
"username": "andy_feFhWX",
"full_name": "Andy",
"email": "andy@acme.com",
"role": "user",
"organization_name": "Acme Inc.",
"product_access": {
"live_testing": true,
"automate": true,
"percy": true,
"app_live_testing": false,
"app_automate": false
}
}
]
},
{
"name": "WebTesting",
"created_at": "2021-09-12T14:45:01.000Z",
"parallels_allocated": {
"automate": {
"val": 5,
"type": "Org"
},
"app_automate": {
"val": 2,
"type": "Team"
}
},
"user_count": 0,
"user_details": []
}
]
}
-
count Integer
Total no of teams in the organization account on BrowserStack.
-
team_details Object
Details of teams
-
name String
Unique identifier of the user.
-
created_at String
Username of the user. In case the user
status
is pending, the username will be empty. -
parallels_allocated Object
Details of parallels allocated
-
automate Object
Details of parallels allocated for Automate product
-
val Integer
Count of Automate product parallels that are available for running tests.
-
type String
Specifies whether parallel is allocated to the Team or Organization.
Possible Value Description Team
Team has parallels allocated. Org
Team is sharing the Org’s parallels.
-
-
app_automate Object
Details of parallels allocated for App Automate product
-
val Integer
Count of App Automate product parallels that are available for running tests.
-
type String
Specifies whether parallel is allocated to the Team or Organization.
Possible Value Description Team
Team has parallels allocated. Org
Team is sharing the Org’s parallels.
-
-
-
user_count Integer
Total no of users in the organization account on BrowserStack.
-
user_details Object
Details of users that are part of the given Team.
-
id String
Unique identifier of the user.
-
username String
Username of the user. In case the user
status
ispending
, the username will be empty. -
full_name String
Full name of the user. In case the user
status
ispending
, the full_name will be empty. -
email String
Email of the user.
-
role String
Role of the user.
-
organization_name String
Name of the organization account on BrowserStack.
-
teams Array[String]
List of all team to which the user belongs. Note: If the user is part of Organization (and not any Team within the Organization) then
teams
key is not returned. -
product_access Object
Details of product access.
-
live_testing Boolean
Value is set to
true
if product-access to Live product is granted to the user. -
app_live_testing Boolean
Value is set to
true
if product-access to App Live product is granted to the user. -
automate Boolean
Value is set to
true
if product-access to Automate product is granted to the user. -
app_automate Boolean
Value is set to
true
if product-access to App Automate product is granted to the user. -
percy Boolean
Value is set to
true
if product-access to Percy product is granted to the user.
-
-
-
Get team details
Returns the details of the specified user. The team_name
of the team is the valid unique identifier to fetch the team detail.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X GET "https://api.browserstack.com/user/get_team_details?team_name=MobileTesting"
-
team_name* String
Name of the team.
Response attributes 200
application/json
Response
{
"name": "MobileTesting",
"created_at": "2021-09-17T08:14:05.000Z",
"parallels_allocated": {
"automate": {
"val": 2,
"type": "Team"
},
"app_automate": {
"val": 5,
"type": "Org"
}
},
"user_count": 0,
"user_details": []
}
-
name String
Name of the Team.
-
created_at String
Timestamp at which Team was created.
-
parallels_allocated Object
Details of parallels available to the Team for automated testing.
-
automate Object
Details of parallels allocated for Automate product
-
val Integer
Count of Automate product parallels that are available for running tests.
-
type String
Specifies whether parallel is allocated to the Team or Organization.
Possible Value Description Team
Team has parallels allocated. Org
Team is sharing the Org’s parallels.
-
-
app_automate Object
Details of parallels allocated for App Automate product
-
val Integer
Count of App Automate product parallels that are available for running tests.
-
type String
Specifies whether parallel is allocated to the Team or Organization.
Possible Value Description Team
Team has parallels allocated. Org
Team is sharing the Org’s parallels.
-
-
-
user_count String
Total no of users in the given Team.
-
user_details Object
Details of users
-
id String
Unique identifier of the user.
-
username String
Username of the user. In case the user
status
ispending
, the username will be empty. -
full_name String
Full name of the user. In case the user
status
ispending
, the full_name will be empty. -
email String
Email of the user.
-
role String
Role of the user.
-
organization_name String
Name of the organization account on BrowserStack.
-
teams Array[String]
List of all team to which the user belongs. Note: If the user is part of Organization (and not any Team within the Organization) then
teams
key is not returned. -
product_access Object
Details of product access.
-
live_testing Boolean
Value is set to
true
if product-access to Live product is granted to the user. -
app_live_testing Boolean
Value is set to
true
if product-access to App Live product is granted to the user. -
automate Boolean
Value is set to
true
if product-access to Automate product is granted to the user. -
app_automate Boolean
Value is set to
true
if product-access to App Automate product is granted to the user. -
percy Boolean
Value is set to
true
if product-access to Percy product is granted to the user.
-
-
Create new team
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api.browserstack.com/user/create_team?team_name=WebTesting"
-
team_name* String
Name of team. Minimum 1 and maximum 40 characters are required for team name.
Response attributes 200
application/json
Response
{
"message": "WebTesting successfully created."
}
-
status_code String
WebTesting successfully created.
Allocate parallels to team
Allocate parallels (for Automate
or App Automate
product) to teams. Allocated parallels to a team defines the limit of parallel tests that can be run concurrently by members of that team.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X PATCH "https://api.browserstack.com/user/team-parallel-allocation" -d '{"teams": {"WebTesting": 3},"product": "automate"}'
-
teams* Object
Object of team names and parallels to be allocated.
-
product* String
Specify the product for which team is to be updated.
Possible Value Description automate
BrowserStack’s Automate product for automated testing of websites. app_automate
BrowserStack’s App Automate product for automated testing of mobile apps.
Response attributes 200
application/json
Response
{
"message": "Parallel test limit updated for teams."
}
-
status_code String
WebTesting successfully created.
Get team parallels
Get information on current parallel allocation for team(s) in your account.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X GET "https://api.browserstack.com/user/get_team_details"
-
team_name* String
Name of the team
Response attributes 200
application/json
Response
{
"message": {
"MobileTesting": {
"parallels": {
"automate": {
"val": 1,
"type": "Team"
},
"app_automate": {
"val": 5,
"type": "Org"
}
}
},
"WebTesting": {
"parallels": {
"automate": {
"val": 2,
"type": "Team"
},
"app_automate": {
"val": 5,
"type": "Org"
}
}
}
}
}
-
message Array
Details of parallels allocated across Teams
-
team_name Object
Details of parallels allocated
-
automate Object
Details of parallels allocated for Automate product
-
val Integer
Count of Automate product parallels that are available for running tests.
-
type String
Specifies whether parallel is allocated to the Team or Organization.
Possible Value Description Team
Team has parallels allocated. Org
Team is sharing the Org’s parallels.
-
-
app_automate Object
Details of parallels allocated for App Automate product
-
val Integer
Count of App Automate product parallels that are available for running tests.
-
type String
Specifies whether parallel is allocated to the Team or Organization.
Possible Value Description Team
Team has parallels allocated. Org
Team is sharing the Org’s parallels.
-
-
-
Delete team
Delete a team.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X DELETE "https://api.browserstack.com/user/delete_team?team_name=WebTesting"
-
team_name* String
Name of the team
Response attributes 200
application/json
Response
{
"message": "WebTesting successfully deleted."
}
-
status_code String
Status code
Note:
If auto user provisioning is enabled, contact your IT Admin for team creation or deletion.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.