Waiting for engine...
Skip to main content

User and group management

Data Structures

FTHUserData

Holds the data from user object

Data TypeField NameDescription
intUserIDUser ID in MFT FS
stringNameUser name in MFT FS, used for sign-in
stringDomainUsernameUsername in the LAN Windows domain in the format domainusername
boolDomainUserFlagTrue if user is a domain user created by some Sync server
stringFirstNameUser first name
stringLastNameUser last name
stringEmailUser email
intRoleUser role in MFT FS: Administrator/Manager/Member
boolActiveIs user active
boolDeletedIs user deleted
stringUserSyncIDSync ID that is created by synchronization services such as Active Directory integration/SSO MFT FS product.
stringFullNameFull user name, a string that contains both first and last name
stringSortableNameName to be used in sorting
intHomeFolderIDID of the home folder

FTHUserGroupData

Holds the data from User Group object

Data TypeField NameDescription
intUserGroupIDUser Group ID in MFT FS
stringNameGroup name in MFT FS

Methods

CreateDomainUser

Creates user on request from services that synchronize user list in corporate Active Directory with MFT FSuser list.

FTHUserData  
CreateDomainUser (Guid sessionID, string domainUsername, string userSyncID, string firstName, string lastName, string email, bool createHomeFolder, int role, bool active )
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
domainUsernameUsername in the LAN Windows domain in the format “domain\username”
userSyncIDUnique synchronization ID provided by external sync service, in case of MFT FS SSO service synching with Active Directory it is equal to user GUID from Active Directory.
firstNameuser first name in corporate directory
lastNameUser last name in corporate directory
emailUser email in corporate directory. Mandatory parameter. This call will fail if email is not provided
createHomeFolderFlag to create home folder, home folder name is derivative from user email address. ‘@’ sign is replaced by a dot
roleUser role in MFT FS, allowed values:
Member = 3
Manager = 4
Administrator = 5
activeFlag: if the user should be created active

GetUserByUserSyncID

Get user by a user SyncID, used by external synchronization service like MFT FS integration with Active Directory/SSO service.

FTHUserData  
GetUserByUserSyncID (Guid sessionID, string userSyncID)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
userSyncIDUnique synchronization ID provided by external sync service, in case of MFT FS SSO service synching with Active Directory it is equal to user GUID from Active Directory.

CreateUser

Create a user in a MFT FS site.

FTHUserData  
CreateUser (Guid sessionID, string name, string firstName, string lastName, string email, bool createHomeFolder, int role, bool active, string homeFolderName )
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
nameUser login name
firstNameUser first name in corporate directory
lastNameUser last name in corporate directory
emailUser email in corporate directory
createHomeFolderFlag to create home folder
roleUser role in MFT FS
activeFlag: if the user should be created active
homeFolderNameName for the home folder

CreateUserEx

Create a user in a MFT FS site.

FTHUserData  
CreateUserEx (Guid sessionID, string name, string firstName, string lastName, string email, bool createHomeFolder, int role, bool active, string homeFolderName, string password )
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
nameUser login name
firstNameUser first name in corporate directory
lastNameUser last name in corporate directory
emailUser email in corporate directory
createHomeFolderFlag to create home folder
roleUser role in MFT FS
activeFlag: if the user should be created active
homeFolderNameName for the home folder
PasswordUser password

CreateUserEx2

Create a user in a MFT FS site. Allows the assigning the user to a ‘LOGIN RESTRICTED’ group.

FTHUserData  
CreateUserEx2 (Guid sessionID, string name, string firstName, string lastName, string email, bool createHomeFolder, int role, bool active, string homeFolderName, string password, bool noLogin)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
nameUser login name
firstNameUser first name in corporate directory
lastNameUser last name in corporate directory
emailUser email in corporate directory
createHomeFolderFlag to create home folder
roleUser role in MFT FS
activeFlag: if the user should be created active
homeFolderNameName for the home folder
passwordUser password
noLoginFlag to assign the user to a ‘LOGIN RESTRICTED’ group

DeleteUser

Deletes a user in MFT FS site by a user ID

void  
DeleteUser (Guid sessionID, int userID)
Parameter NameDescription
SessionIDUser session returned by one of the Open functions
UserIDMFT FS user ID of the user to delete

FindUsers

Find users by search criteria

FTHUserData[]  
FindUsers (Guid sessionID, string emailSearch, bool emailAll, string nameSearch, bool nameAll, string fullNameSearch, bool fullNameAll, string companyNameSearch, bool companyNameAll, bool includeDeleted)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
emailSearchSearch pattern for emails
emailAllFlag to include all emails
nameSearchSearch pattern for user name
nameAllFlag to include all user names
fullNameSearchSearch pattern for full name
fullNameAllFlag to include all full names
companyNameSearchSearch pattern for company name
companyNameAllFlag to include all company names
includeDeletedInclude deleted users into search results

GetUser

Get user by a user ID

FTHUserData  
GetUser (Guid sessionID, int userID)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
userIDMFT FS user ID of the user to retrieve

GetUserGroup

Get user group data by a group ID, refer to data structure description.

FTHUserGroupData  
GetUserGroup(Guid sessionID, int userGroupID)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
userGroupIDID of the user group to retrieve

UserGroupAddUser

Add a user to a user group by GroupID and UserID

void UserGroupAddUser (Guid sessionID, int userGroupID, int userId)
Parameter NameDescription
Parameter NameDescription
sessionIDUser session returned by one of the Open calls
userGroupIDID of the user group from which the user is removed
userIdID of the user account

UserGroupDeleteUser

Delete a user from a user group by GroupID and UserID

void UserGroupDeleteUser (Guid sessionID, int userGroupID, int userId)
Parameter NameDescription
Parameter NameDescription
sessionIDUser session returned by one of the Open calls
userGroupIDID of the user group from which the user is removed
userIdID of the user account

SaveUser

Save user object data to MFT FS server

FTHUserData  
SaveUser(Guid sessionID, FTHUserData user)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
userUser data that should be saved, refer to data structure description

UndeleteUser

Undelete user is used in order to undelete previously deleted user instead of creating a new user with the same name and therefore preserve audit information. Previously existing home folder cannot be found since it has been unlinked, new home folder can be created.

FTHUserData  
UndeleteUser (Guid sessionID, int userID, bool createHomeFolder, string homeFolderName)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
userIDUser ID of the user to be undeleted
createHomeFolderFlag that defines if home folder should be created
homeFolderNameName for the home folder if flag requires home folder creation

ChangeUserPassword

Change password for a user with the known session

void  
ChangeUserPassword(Guid sessionID, int userID, string oldPassword, string newPassword)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
userIDUser ID of the user for who the password will be changed
oldPasswordOld password
newPasswordNew password
On this Page