Docs
  • Getting Started
  • Overview
    • Understanding
      • User-Interface
      • Shortcuts
    • Getting Started
      • Creating A New Application
      • Adding Basic Structure using Class Designer
      • Creating a link to the TIVITY File Class
      • Setting Rights
      • Creating Queries
      • Building The Layout
        • Creating an App Page
        • Creating an Object Page
        • Creating a List Item Layout
  • Building an Application
    • Application Setup
      • General
      • Documentation
      • License Management
      • Publishing the Application
      • Advanced Settings
        • Document-MailEditor
    • Data
      • Sources
      • Data Modelling
        • Class
        • Field
        • Action
        • Link
      • Query Data
        • Get Started with Query Designer
        • Common
        • Fields
        • Conditions
        • Default Values
        • Preview
      • Roles & Permissions
        • Rights Designer
      • Access Control Lists (ACL)
    • Views
      • Design UI
        • Page Types
        • Fields and Links
        • Layout Controls
          • Actions
          • Panels
          • Sections
          • Lists
          • Input
        • Layout Templates
      • Document Templates
        • Get started with Template Designer
        • Expressions in Templates
    • Execution
      • Functions
      • Workflows
        • Control Types
      • Trigger
      • Scripting
        • Accessing the Script Designer
        • Using the Script Designer
        • Commonly used Actions
        • Reference: Actions
          • Math
          • System
          • Date
          • Collection
          • LogicalOperators
          • Web
          • Structure
          • Constants
          • Converters
          • Commands
          • Text
          • PDF
          • Operators
          • PowerPoint
          • QR-/Barcode
          • Messaging
          • Cells
          • Xml
          • Admin
          • Integrations
    • Expressions
      • Expressions in Expressions
      • Expressions in Condition Values
  • Administration
    • Platform
    • Workspace
    • Security
    • Platform Setup
  • Extensibility and Integration
    • REST API
    • Source Adapter
      • Getting Started
      • Source Adapter Interface
      • RESTful Adapter Service
  • Adapter Portfolio
    • MongoDB Adapter
  • Platform Features
    • Enterprise Search
      • Integration into an App
      • General Settings
    • Templates
    • Tagging
      • Getting Started
      • Manage Tags
      • Settings
      • Usage
        • Tag filter
        • Tag panel
    • DMS Setup
Powered by GitBook
On this page
  • ActivateUser
  • AddUserToGroup
  • AddUserToOffice
  • CreateUser
  • DeleteUserFromGroup
  • DeleteUserFromOffice
  • CreateUser
  • ActivateUser

Was this helpful?

  1. Building an Application
  2. Execution
  3. Scripting
  4. Reference: Actions

Admin

The following actions on this page are only available in the Admin Center (SAML scripts).

ActivateUser

Activates an user and sends them an activation mail. Throws an error if the user could not be found. Does nothing if the user is already activated.

Syntax

ActivateUser( UserId )

Parameters

UserId The ID of the user to activate. Type: Guid

Return type

Void

AddUserToGroup

Takes a GroupId and a UserId as input and adds a user to a group.

Syntax

Void AddUserToGroup(
    Guid GroupId,
    Guid UserId
)

Parameters

GroupId The ID of the group the user should get associated with. Type: Guid

UserId The ID which identifies the user. Type: Guid

Return Type

Void

AddUserToOffice

Takes an OfficeId and a UserId as input and adds a user to an office.

Syntax

Void AddUserToOffice(
    Guid OfficeId,
    Guid UserId
)

Parameters

OfficeId The ID of the office the user should get added to. Type: Guid

UserId This ID which identifies the user. Type: Guid

Return Type

Void

CreateUser

Creates and returns an user with the given information. Throws an error if an user with the same login name already exists.

Syntax

CreateUser ( OfficeId, LoginName, FirstName, LastName, NickName, Language )

Parameters

OfficeId The ID of the office to create the user for (the executing user must have access to it). Type: Guid

LoginName The e-mail address of the new user (must be unique). Type: String

FirstName The first name of the new user. Type: String

LastName The last name of the new user. Type: String

NickName The nick name or abbreviation of the new user. Type: String

Language The language of the new user. Type: Language

Return type

Object

DeleteUserFromGroup

Takes a GroupId and a UserId as input and deletes a user from a group.

Syntax

Void DeleteUserFromGroup(
    Guid GroupId,
    Guid UserId
)

Parameters

GroupId The ID of the group the user should get deleted from. Type: Guid

UserId The ID which identifies the user. Type: Guid

Return Type

Void

DeleteUserFromOffice

Takes an OfficeId and a UserId as input and deletes a user from an office.

Syntax

Void DeleteUserFromOffice(
    Guid OfficeId,
    Guid UserId
)

Parameters

OfficeId The ID of the office the user should get deleted from. Type: Guid

UserId This ID which identifies the user. Type: Guid

Return Type

Void

CreateUser

Creates and returns an user with the given information. Throws an error if an user with the same login name already exists.

Syntax

CreateUser(
    Guid OfficeId,
    String LoginName,
    String FirstName,
    String LastName,
    String NickName,
    String Language
)

Level

PlatformAdministrator

Parameters

OfficeId The ID of the office to create the user for (the executing user must have access to it). Type: Guid

LoginName The mail address of the new user (must be unique). Type: String

FirstName The first name of the new user. Type: String

LastName The last name of the new user. Type: String

NickName The nick name or abbreviation of the new user. Type: String

Language The language of the new user.

Behavior:

Creates an user like the 'Admin Center' creates user: not activated or confirmed.

User can only created for the specified office, however, user must be unique throughout the platform.

Return Type

Object

ActivateUser

Activates an user and sends them an activation mail. Throws an error if the user could not be found. Does nothing if the user is already activated.

Syntax

CreateUser(
    Guid UserId,
)

Level

PlatformAdministrator

Parameters

UserId The ID of the user to activate. Type: Guid

Behavior:

Activates an user like the 'Admin Center' activates user: sending the activation mail to change password and confirming the user.

Only user to which the current executing user has access to can be activated.

Return Type

None

PreviousXmlNextIntegrations

Last updated 3 years ago

Was this helpful?