Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFSecurity Methods

  • Last UpdatedNov 18, 2025
  • 8 minute read
AFSecurity Methods

The AFSecurity type exposes the following members.

Methods

  NameDescription
Public methodStatic member
AddIdentity(PISystem, AFSecurityIdentity, AFSecurityRights, AFSecurityRights, AFSecurityOperation)
Add security for an AFSecurityIdentity to all objects in the PISystem.
Public methodStatic member
AddIdentity(PISystem, AFSecurityIdentity, IListAFSecurity, AFSecurityRights, AFSecurityRights, AFSecurityOperation, Boolean)
Add security for an AFSecurityIdentity to specified objects in the PISystem.
Public methodStatic member
AddUser(PISystem, String, AFSecurityRights, AFSecurityRights, AFSecurityOperation)
Add security for a user account to all objects in the PISystem.
Public methodStatic member
AddUser(PISystem, String, IListAFSecurity, AFSecurityRights, AFSecurityRights, AFSecurityOperation, Boolean)
Add security for a user account to specified objects in the PISystem.
Public methodStatic member
AreEquivalent
This method compares two lists of AFSecurityIdentity items for equivalence.
Public methodCode example
CheckSecurity(ClaimsIdentity)
Evaluate the AFSecurityRights of the specified user for the object.
Public methodCode example
CheckSecurity(WindowsIdentity)
Evaluate the AFSecurityRights of the specified user for the object.
Public methodCode example
CheckSecurity(IListAFSecurityIdentity, String)
Evaluate the AFSecurityRights for the specified list of security identities for a user.
Public methodStatic memberCode example
CheckSecurity(PISystem, ClaimsIdentity, IListAFSecurityRightsToken)
Evaluate the AFSecurityRights of the specified user for a list of objects without needing to load the object.
Public methodStatic memberCode example
CheckSecurity(PISystem, WindowsIdentity, IListAFSecurityRightsToken)
Evaluate the AFSecurityRights of the specified user for a list of objects without needing to load the object.
Public methodStatic memberCode example
CheckSecurity(PISystem, IListAFSecurityIdentity, IListAFSecurityRightsToken, String)
Evaluate the AFSecurityRights for the security identities of a user for a list of objects without needing to load the object.
Public methodStatic member
ClearSecurityRightsCache
Clears the cache used by the CheckSecurity Overload methods.
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetAccessControl Obsolete.
Gets the access control security descriptor for the associated object.
Public methodStatic member
GetAccountNameForSID(SecurityIdentifier, Boolean)
Helper method to return the Windows Account name for a security identifier (SID).
Public methodStatic member
GetAccountNameForSID(SecurityIdentifier, Boolean, String)
Helper method to return the Windows Account name for a security identifier (SID) on a remote machine.
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic member
GetIdForRoleName
Helper method that returns the Id for an OpenID Connect Role.
Public methodStatic member
GetRoleNameForId
Helper method that returns the Name for an OpenID Connect Role.
Public method
GetSecurityEntries
Get the security entries for this security object.
Public method
GetSecurityString
Gets a cached human readable string which represents the Access Rules of the security for the associated object.
Public method
GetSecurityString(Boolean)
Gets a human readable string which represents the Access Rules of the security for the associated object with the option to force getting the latest version from the server.
Public methodStatic member
GetSIDForAccountName(String)
Helper method that returns the security identifier (SID) for a windows account name.
Public methodStatic member
GetSIDForAccountName(String, String)
Helper method that returns the security identifier (SID) for a windows account name on a remote machine.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic member
GetUserId
Get the user identifier for the specified user name.
Public methodStatic member
GetUserIdentities(PISystem, ClaimsIdentity)
Gets the list of AFSecurityIdentity identities for the specified user on the PISystem server.
Public methodStatic member
GetUserIdentities(PISystem, WindowsIdentity)
Gets the list of AFSecurityIdentity identities for the specified user on the PISystem server.
Public methodStatic member
GetUserIdentityString(PISystem, ClaimsIdentity)
Gets the security identity string for the specified user on the PISystem server.
Public methodStatic member
GetUserIdentityString(PISystem, WindowsIdentity)
Gets the security identity string for the specified user on the PISystem server.
Public methodStatic member
RemoveIdentity(PISystem, AFSecurityIdentity)
Remove all security rights for an AFSecurityIdentity from all objects in the PISystem.
Public methodStatic member
RemoveIdentity(PISystem, AFSecurityIdentity, IListAFSecurity, Boolean)
Remove all security rights for an AFSecurity from the specified objects in the PISystem.
Public methodStatic member
RemoveUser(PISystem, String)
Remove all security rights for a user account from all objects in the PISystem.
Public methodStatic member
RemoveUser(PISystem, String, IListAFSecurity, Boolean)
Remove all security rights for a user account from the specified objects in the PISystem.
Public methodCode example
SetAccessControl Obsolete.
Sets the access control security descriptor for the associated object.
Public method
SetOwner(ClaimsIdentity)
Used to take ownership of the AFObject that is associated with this AFSecurity.
Public method
SetOwner(NTAccount)
Used to take ownership of the AFObject that is associated with this AFSecurity.
Public methodCode example
SetSecurityString
Sets the access control security rules for the associated object.
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)
Public methodStatic member
VerifySignature
Verify the signature of an assembly.

See Also

TitleResults for “How to create a CRG?”Also Available in