adTempus API
ArcanaDevelopment.adTempus.Client Namespace / DataContext Class / GetEffectivePermissions Method
The OIDs of the object(s) to check permissions for.


In This Topic
    GetEffectivePermissions Method
    In This Topic
    Gets the effective permission sets for one or more objects.
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Function GetEffectivePermissions( _
       ByVal ParamArray requestedOIDs() As OID _
    ) As Dictionary(Of OID,Integer())
    [NotNull()]
    public Dictionary<OID,int[]> GetEffectivePermissions( 
       params OID[] requestedOIDs
    )
    [NotNull()]
    public:
    Dictionary<OID^,array<int>>^ GetEffectivePermissions( 
       ... array<OID^>^ requestedOIDs
    ) 

    Parameters

    requestedOIDs
    The OIDs of the object(s) to check permissions for.

    Return Value

    A dictionary of permission sets for the objects.
    Remarks

    Each item is an array of uints representing all the permissions that the caller has for the object. The values may be any of the values from ArcanaDevelopment.adTempus.Shared.SecurityPermission, or extended values.

    Important: When checking to see if a specific permission is present, you must test separately for the presence of SecurityPermission.FullControl. If SecurityPermission.FullControl is present then the caller is authorized to perform any action, but other actions will not be explicitly included in the list. Use ArcanaDevelopment.adTempus.Shared.PermissionHelper.CanPerform to properly check for a permission.

    If the array of permissions is empty, the object could not be found or the caller does not have any permissions.

    See Also