Methods
-
Appearition.Persona.Manage.AddPersonaAccessToPersona (personaName, accessPersonaName, requestOptions) static
Adds the given role to an existing persona
-
Name Type Description personaNamestring the name of the persona
accessPersonaNamestring the persona to grant access to the persona
requestOptionsany configure callbacks
-
Adds the given role to an existing persona
-
Name Type Description personaNamestring the name of the persona
rolestring the role to add to the persona
requestOptionsany configure callbacks
-
Creates a new persona. Nothing is returned unless there is an error
-
Name Type Description requestAppearition.Persona.PersonaSummaryViewModel the details of the new persona to create
requestOptionsany configure callbacks
-
Deletes the persona from the system. Has no impact to the access of users who are in this persona
-
Name Type Description personaIdnumber since we could be updating the name, this is the unique data store identifier
requestOptionsany configure callbacks
-
Appearition.Persona.Manage.Get (personaName, requestOptions)Appearition.Persona.Manage.PersonaViewModel static
Retrieves persona by the given name
-
Name Type Description personaNamestring the name of the persona
requestOptionsany configure callbacks
Returns:
Type Description Appearition.Persona.Manage.PersonaViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Persona.Manage.List (requestOptions)Array.<Appearition.Persona.Manage.PersonaViewModel> static
Retrieves a list of personae that are available to be added to a user
-
Name Type Description requestOptionsany configure callbacks
Returns:
Type Description Array.<Appearition.Persona.Manage.PersonaViewModel> This is returned as part of the success callback function in the requestOptions param -
Retrieves a list of roles that can be assigned to a persona
-
Name Type Description requestOptionsany configure callbacks
-
Appearition.Persona.Manage.RemovePersonaAccessFromPersona (personaName, accessPersonaName, requestOptions) static
Removes the given role from an existing persona
-
Name Type Description personaNamestring the name of the persona
accessPersonaNamestring the persona to remove from the persona
requestOptionsany configure callbacks
-
Removes the given role from an existing persona
-
Name Type Description personaNamestring the name of the persona
rolestring the role to add to the persona
requestOptionsany configure callbacks
-
Updates the name and description of an existing persona. Nothing is returned unless there is an error
-
Name Type Description personaIdnumber since we could be updating the name, this is the unique data store identifier
requestAppearition.Persona.PersonaSummaryViewModel the details of the persona to update
requestOptionsany configure callbacks
-
Updates the name and description of an existing persona. Nothing is returned unless there is an error
-
Name Type Description personaNamestring the name of the persona
requestAppearition.Persona.PersonaPermissionViewModel the details of the persona to update
requestOptionsany configure callbacks
Type Definitions
-
This is the data structure that represents all the allowed actions for a persona
-
Properties:
Name Type Description CanCreateUsersboolean Is the persona allowed to create new users
CanEditUserAccountboolean Is the persona allowed to modify account information such as passwords
CanEditUserPersonalDetailsboolean Is the persona allowed to modify personal details such as name and contact email
CanEditUserChannelsboolean Is the persona allowed to modify what channels a user is allocated to
CanOverrideUserRolesboolean Is the persona allowed to manually pick roles when creating/editing a user
ShowAcceptConsentOnUserCreateboolean When creating new users, must this persona accept consent.
AcceptConsentDisplayTextstring If the ShowAcceptConsentOnUserCreate=true, this may contain a special label that should be presented to the user as part of the consent process
PermissionsAppearition.Persona.Manage.PersonaPermissionViewModel Describes what this persona is allowed to do.
-
This is the data structure that represents a persona on the platform
-
Properties:
Name Type Description Idnumber The unique system identifier of the persona
Namestring The unique name of the persona
Descriptionstring Any text that describes the persona
RolesArray.<string> A list of roles that are allocated for this persona
PersonaAccessArray.<string> A list of other personas that this persona has access to
PermissionsAppearition.Persona.Manage.PersonaPermissionViewModel Describes what this persona is allowed to do.