Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

General Information


ServiceAPIMethod
urac/admin/addUserPOST


Data Models: UsersTokens

WorkFlow: Add User Flow

Input


NameSourceMandatoryTypeSpecial FormatDescription
tIdBody or QueryYESStringN/Athe Id of the tenant where this user is added
tCodeBody or QueryYESStringN/Athe code of the tenant
usernameBodyYESStringalphanumeric with _ , - characters only
firstNameBodyYESStringN/A
lastNameBodyYESStringN/A
emailBodyYESStringN/A
profileBodyNOObjectN/AThe profile object.
groupsBodyNOArrayN/Aarray of group code values


Output


Valid Response

Valid Response Sample
{
	"result": true,
	"data": "..."
}


Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[402],
        "details":[
            {
                "code":402,
                "message":"User account already exists."
            }
        ]
    }
}



Error Codes



Code
Description
402User account already exists.
403Unable to register user. please try again.
414Unable to add user.
611invalid tenant id provided


Example (CURL)


Request

Calling Add User API
 > CURL -X POST http://127.0.0.1:4000/urac/admin/addUser?tId=5551aca9e179c39b760f7a1a&tCode=DBTN -d 'username=john&firstName=John&lastName=Doe&email=johndoe@domain.com'

Response

Add User API response
{
	"result": true,
	"data": {
		"id":"57c6eb28962f94a7caab8a22", 
		"token": "719b0aed-edd8-47d5-ada0-9e5f93cb8247"
	}
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.