getListOfSubAccounts: Get a list of sub accounts

Description Usage Arguments See Also Examples

Description

Get a list of sub accounts associated with a parent account

Usage

1
2
getListOfSubAccounts(account, username = Sys.getenv("SLUSER"), from = NULL,
  limit = 100L, ...)

Arguments

account

An object of class "account". An account object see account.

username

SauceLabs username

from

Get user from this user number. Defaults to NULL

limit

The limit on users returned. Defaults to 50L (50L is the max).

...

Additonal function arguments - Currently unused.

See Also

Other accountMethods: changeAccessKey, createUser, getListOfSiblingAccounts, getSubAccountInformation, getUserConcurrency, getUser

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
myAcc <- account()
appData <- getUser(myAcc)

createUser(myAcc, newUsername = "superstartester", password = "johndoe"
           , name = "John", email = "superstartester@example.com")
# $errors
# [1] "Subaccount capacity exhausted."
uC <- getUserConcurrency(myAcc)
#> rbindlist(uC$concurrency$self[c("allowed", "current")], fill = TRUE)
#manual mac overall real_device
#1:      5   5       5           0
#2:      0   0       0          NA
users <- getListOfSubAccounts(myAcc)
#> users$users_total
#[1] 1
siblings <- getListOfSiblingAccounts(myAcc)
#> getListOfSiblingAccounts(myAcc)
#list()
subAcc <- getSubAccountInformation(myAcc)

# change accesskey for a user
# changeAccessKey(myAcc, "rsaucelabs")

## End(Not run)

johndharrison/RSauceLabs documentation built on May 19, 2019, 4:22 p.m.