AddEnterpriseUser
Creates a new Enterprise user in the current repository. Once created, the user will be assigned to the Publishing Group of either the active model or a different model of your choosing.
Syntax
AddEnterpriseUser( UserEmail, UserPassword, ModelReference );
Parameters
Parameter Name | Type | Description | Optional? | Default Value |
---|---|---|---|---|
UserEmail | String | The user's email address. | No | n/a |
UserPassword | String | The new user's password. | No | n/a |
ModelReference | String | The model reference of a mobile app. The new user will automatically be assigned to the Publishing Group associated with the specified app. If this is left blank, the active model's reference will be used by default. | Yes | "" |
If the chosen model is associated with more than one publishing group, the user will be assigned to the one the model was associated with first. For this reason, you should either ensure the model is only part of one group, or use the KnowledgeKube back office to manually re-assign the user later.
Output
If successful, the function will return a message declaring that "Enterprise user 'email@address.com' has been created." If the UserEmail is already associated with an existing Enterprise user, the function will instead return False and a new user will not be created.