Learn R Programming

RSauceLabs (version 0.1.6)

createUser: Create a sub account

Description

Create a sub account

Usage

createUser(account, username = Sys.getenv("SLUSER"), newUsername, password, name, email, ...)

Arguments

account
An object of class "account". An account object see account.
username
SauceLabs username
newUsername
The username of the new user you wish to create
password
The password for the new user you wish to create
name
The name of the new user you wish to create
email
The email of the new user you wish to create
...
Additonal function arguments - Currently unused.

See Also

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

Examples

Run this code
## 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)

Run the code above in your browser using DataLab