Skip to main content

Create User

Creates a new user.

Signature: create(cinfo)

Parameters:

  • cinfo['acctid'] - Identifier for the user that should be created

  • cinfo['modeluid'] - Identifier for the template account

  • cinfo['attributes'] - The attributes to be set on the new user

  • cinfo['newpw'] - The password that should be set on the new user

Return Value:

  • ACSuccess 0

  • ACUnknownError 1

  • ACObjectAlreadyExists 6

  • ACInvalidUser 7

  • ACInvalidModelUser 8

Remarks:

The agent.stableId, agent.longId, agent.shortId and agent.addAccountAttr callbacks should be used to return information on the created user. See the callback section for full details on the individual callbacks.

The template account should be used for attributes with the "COPY" or "REPLACE" actions to be able to determine what value should be set for the attribute. For full details on attributes see the attributes definitions section.