Security Scripts and Functions
TargetDirectory Object
Functions Supported by All Target Directories
Function | Input Parameters (Type) | Return (Type) | Description |
---|---|---|---|
GetUserByDisplayIdentifier()
|
ByVal displayIdentifier (String) | IUser |
|
GetUserByInternalIdentifier()
|
ByVal internalIdentifier (String) |
|
|
GetGroupByDisplayIdentifier()
|
ByVal displayIdentifier (String) | IGroup |
|
GetGroupByInternalIdentifier()
|
ByVal internalIdentifier (String) |
|
Functions Supported by Active Directory
Function | Input Parameters (Type) | Return (Type) | Description |
---|---|---|---|
GetGroupByAttribute()
|
ByVal attribute (String) ByVal value (String) |
ADGroup |
|
GetGroupByDistinguishedName()
|
ByVal distinguishedName (String) |
|
|
GetGroupByName()
|
ByVal name (String) |
|
|
GetGroupBySID()
|
ByVal sid (String) |
|
|
GetUserByAttribute()
|
ByVal attribute (String) ByVal value (String) |
ADUser |
|
GetUserByEmailAddress()
|
ByVal emailAddress (String) |
|
|
GetUserByName()
|
ByVal name (String) |
|
|
GetUserBySID()
|
ByVal sid (String) |
|
Functions Supported by Azure Active Directory
Function | Input Parameters (Type) | Return (Type) | Description |
---|---|---|---|
GetGroupByAttribute()
|
ByVal attribute (String) ByVal value (String) |
AADGroup |
|
GetGroupByEmail()
|
ByVal emailAddress (String) |
|
|
GetGroupByID()
|
ByVal id (String) |
|
|
GetUserByAttribute()
|
ByVal attribute (String) ByVal value (String) |
AADUser |
|
GetUserByEmailAddress()
|
ByVal emailAddress (String) |
|
|
GetUserByID()
|
ByVal id (String) |
|
|
GetUserByName()
|
ByVal name (String) |
|
|
GetUserByUPN()
|
ByVal upn (String) |
|
User and Group Objects
Properties Supported by All Target Directories
Property | Type | Description |
---|---|---|
Disabled
|
Boolean | Indicated that the user or group is disabled in the target directory. |
DisplayIdentifier
|
String |
|
InternalIdentifier
|
|
Properties Supported by Active Directory
Property | Type | Description |
---|---|---|
DistinguishedName
|
String | LDAP specific identifier. |
Name
|
Name in 'domain\user' format. | |
SID
|
Active Directory specific security identifier. |
Properties Supported by Azure Active Directory
Property | Type | Description |
---|---|---|
AdditionalAttributes
|
Dictionary<String, object> |
|
DeletedDateTime
|
DateTime | AAD Group only: Specifies the date the group was deleted. |
DisplayName
|
String | User/Group display name. |
ID
|
Azure Active Directory specific security identifier. | |
Mail
|
User/Group email address. | |
OnPremisesSecurityIdentifier
|
The SID of a user/group synchronized with On-Premise active directory. | |
UserPrincipalName
|
AAD User only: Specifies the user principal name. |
HOST Object
User and Group Mapping Functions
The following table contains all the security mapping related functions of the HOST object:
Function | Input Parameters (Type) | Return (Type) | Description |
---|---|---|---|
GetCount()
|
|
Integer | Returns the index of current user or group. |
GetSystemActive()
|
|
Boolean | Retrieves the "active" status. |
GetSystemId()
|
|
String | Retrieves the unique identifier of user or group returned by connector. |
GetSystemName()
|
|
Retrieves the name of user or group returned by connector from the source system. | |
GetTargetDirectoryId()
|
|
Retrieves the target directory specific identifier returned by connector. | |
GetValue()
|
ByVal key (String) | Retrieves the custom property of the user or group returned by the connector. | |
RemapBySystemName()
|
|
|
|
SetSystemActive()
|
ByVal (Boolean) |
|
Sets the "active" status. |
Access Control Scripts and Functions
Function | Input Parameters (Type) | Return (Type) | Description |
---|---|---|---|
GetSecDesc()
|
|
Byte() | Returns the security descriptor. |
SetSecDesc()
|
ByVal sd (Byte()) | Sets the security descriptor. | |
CheckIsPublic()
|
|
Boolean |
Retrieves the item Public status. |
SetIsPublic()
|
ByVal iPublic (Boolean) | Sets the item Public status. | |
AddUser()
|
ByVal id (String) ByVal grant (Boolean) |
Adds a user by system ID. To add the user with granted access, set Grant to true. To add the user with denied access, set Grant to false. |
|
AddGroup()
|
Adds a group by system ID. To add the group with granted access, set Grant to true. To add the group with denied access, set Grant to false. |
||
AddUser()
|
ByVal id (String) ByVal lvl (Integer) ByVal grant (Boolean) |
Adds a user by system ID to a specific level for multi-level security. To add the user with granted access, set Grant to true. To add the user with denied access, set Grant to false. |
|
AddGroup()
|
Adds a group by system ID to a specific level for multi-level security. To add the group with granted access, set Grant to true. To add the group with denied access, set Grant to false. |
||
|
ByVal id (String) ByVal grant (Boolean) |
Removes a user by System ID from the ACL | |
RemoveGroup()
|
Removes a group by System ID from the ACL | ||
|
ByVal user (IUser) ByVal grant (Boolean) |
Adds a user retrieved from the target directory. | |
AddTargetUser()
|
ByVal user (IUser) ByVal lvl (Integer) ByVal grant (Boolean) | Adds a user retrieved from the target directory to a specific level for multi-level security. | |
AddTargetGroup()
|
ByVal group (IGroup) ByVal grant (Boolean) | Adds a group retrieved from the target directory. | |
AddTargetGroup()
|
ByVal group (IGroup) ByVal lvl (Integer) ByVal grant (Boolean) | Adds a group retrieved from the target directory to a specific level for multi-level security. | |
|
|
Clears all users/groups access. | |
GetGrantGroupIDs()
|
|
String() |
Granted groups IDs. |
|
String() | Granted users IDs. | |
|
String() | Denied groups IDs. | |
GetDenyUserIDs()
|
String() | Denied users IDs. |