Click or drag to resize

SecurityUser Class

A SecurityUser defines a logged user with all security objects
Inheritance Hierarchy
SystemObject
  Seal.ModelSecurityUser

Namespace: Seal.Model
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.0.0+c1250b26c169a4ba4d702dc7579506e87ba2cd3a
Syntax
C#
public class SecurityUser

The SecurityUser type exposes the following members.

Constructors
 NameDescription
Public methodSecurityUser Constructor
Top
Properties
 NameDescription
Public propertyAgentConfiguration First AI Agent configuration assigned to this user via the DefaultGroup AgentGUIDs. Returns null if no group is set or no enabled agents are found.
Public propertyAgentConfigurations AI Agent configurations assigned to this user via the DefaultGroup AgentGUIDs. Returns an empty list if no group is set or no enabled agents are found.
Public propertyAllFolders Flat list of all SWIFolder of the user
Public propertyAuthenticationSummary Summary of the authentication
Public propertyDefaultAgentConfiguration Default AI Agent configuration for this user. Resolution order: the last agent the user selected (LastAgentGUID), then the server's DefaultAgentGUID, then the first assigned agent. Each candidate must still be among the agents assigned to the user.
Public propertyDefaultGroup Default group of the user
Public propertyEditProfile True if user can edit his profile
Public propertyIsAuthenticated True if the user is authenticated and part of a group
Public propertyPersonalFolderReportDownload True if the user can download the report definitions stored in his personal folder. The most permissive setting among the groups granting a personal folder applies.
Public propertyPersonalFolderRight Right for the personal folder
Public propertyPersonalFolderUpload True if the user can upload files and reports into his personal folder. The most permissive setting among the groups granting a personal folder applies.
Public propertyProfileDirectory Profile directory
Public propertyProfilePath Profile file path
Public propertySecurityGroupsDisplay List of security group names in a string
Public propertyShowAllFolders True if folders with no right are also shown
Public propertyShowErrorDetail True if user can see the detail of exceptions (error message and stack trace) in the Web Report Server.
Public propertyShowFoldersView If true, folders view is shown
Public propertySqlModel True if the user has the right to edit SQL models and to query the database (raw SQL) with the AI Tools. True if at least one of the user's groups enables SQL Models.
Top
Methods
 NameDescription
Public methodAddDefaultSecurityGroup Add default security groups
Public methodAddSecurityGroup Add a security group from a given name
Public methodAddWindowsGroupToSecurityGroup Add security groups from the current Windows group of the logged user
Public methodAuthenticate Authenticate the user using the current security script
Public methodBelongsToGroup Returns true if the user belongs to a group given by a name
Public methodCanAccessDevice True if the AI tools can use the given output device for this user. Output devices are restricted through the OutputDeviceGUIDs of the user's security groups. If none of the groups defines a restriction (all lists are empty), all output devices are allowed. Otherwise the device is allowed when at least one group lists its GUID (additive rights).
Public methodCanAccessSource True if the AI tools can access the given data source for this user. Data sources are restricted through the DataSourceGUIDs of the user's security groups. If none of the groups defines a restriction (all lists are empty), all data sources are allowed. Otherwise the source is allowed when at least one group lists its GUID (additive rights).
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFillFolder Fills the sub-folders of a folder applying the user's security rights.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindRepositorySecurityFolder Find a repository security folder from a given repository-relative path (without the Repository prefix)
Public methodFindSecurityFolder Find a security folder from a given name
Public methodGetFolder Returns the SWIFolder for a given relative path, applying the user's security rights.
Public methodGetFullPath Returns the full physical path of a folder relative path.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPersonalFolderName Returns the personal folder name
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasFolderRight Returns true when the given physical directory is accessible to this user with at least minRight. Mirrors SWIMoveFile: resolves physDir to a SWIFolder path, looks it up in AllFolders, then applies the same right checks (right==0 → no access; FolderRight.Edit required for write operations).
Public methodLoginAuthentication Authenticate a login with a password and set his groups
Public methodLogout Logout the user
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSaveProfile Save the user profile
Public methodSetFolders Build the current folders of the user (including Personal folders) and execute the Folders Scripts of the user's security groups.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldCurrentFolder The folder path (SWI format) the user is currently browsing in the web interface. Set by SWIGetFolderDetail each time the user navigates to a folder. Empty string means the Reports root; ":" means the Personal root.
Public fieldEmail User email if set during login process
Public fieldError Last error
Public fieldFolderDetail Current folder detail of the user
Public fieldFolderDetails List of all SWIFolderDetail of the user. The list is built when the user browse the folders.
Public fieldFolders Current list of SWIFolder of the user
Public fieldIdentity The current Windows Identity
Public fieldLogin Security login if the authentication using Security Logins is used
Public fieldName Name of the user
Public fieldPersonalFolderName Personal folder name
Public fieldProfile Current SecurityUserProfile
Public fieldRequest Parameters for authentication: The Request done for the login
Public fieldScriptNumber Current script execution number when several Folders or Folder Detail scripts are executed.
Public fieldSecurity Current SealSecurity
Public fieldSecurityCode Parameters for authentication: Security code generated for 2FA
Public fieldSecurityCodeGeneration Parameters for authentication: Security code generation date for 2FA
Public fieldSecurityCodeMessage Parameters for authentication: Security code message generated for 2FA
Public fieldSecurityCodeTries Number of tries to check the security code for 2FA
Public fieldSecurityGroups List of SecurityGroup of the users
Public fieldSessionID Current SessionID
Public fieldTag Custom string got in user profile
Public fieldTag2 Custom string got in user profile
Public fieldToken Parameters for authentication: Token
Public fieldUserPrincipal The current UserPrincipal if connected with the AD
Public fieldWarning Last warning
Public fieldWebHostName Web host name
Public fieldWebMenu Current reports web menu of the user (used for Folder Detail Scripts)
Public fieldWebPassword Parameters for authentication: Password
Public fieldWebPrincipal The current Windows IPrincipal
Public fieldWebSecurityCode Parameters for authentication: Security code sent by the user for 2FA
Public fieldWebUserName Parameters for authentication: User name
Top
See Also