Search Results for

    Show / Hide Table of Contents

    Method GetEffectiveAllowedAccess

    GetEffectiveAllowedAccess(String, String, String, List<String>)

    Get effective allowed access

    Declaration
    EffectiveResultContract GetEffectiveAllowedAccess(string connectionId, string objectType, string elementId, List<string> subjectIds)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String objectType

    The object type (Document, Process, ProtectionDomain). See also ObjectTypeEnum

    System.String elementId

    The element id. Example.: (documentId, processId, protectionDomainId)

    System.Collections.Generic.List<System.String> subjectIds

    The list of subject ids. Example.: (userId, groupId)

    Returns
    Type Description
    EffectiveResultContract

    Return current effective result.

    Examples

    POST http://YourServerName/InfoShare/Json/Common/GetEffectiveAllowedAccess

    Example for get effective allowed access.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "objectType":   "Document",
       "elementId":    "0b86001d-69e0-e911-a94a-00155d290a08",
       "subjectIds":   ["c40f14e4-64e0-e911-a94a-00155d290a99", "c40f14e4-64e0-e911-a94a-00155d290a99"]
    }

    Response:

    { 
       "GetEffectiveAllowedAccessResult": {
        "EffectiveAccessRights": [{
          "AllowedAccessOperationId": ["01002010-38a7-11d8-a902-0050bf427e8f", "0100201b-38a7-11d8-a902-0050bf427e8f", "...."],
          "SubjectId": "158a23eb-861d-ea11-a99d-00155d290a08"
          }, {
          "AllowedAccessOperationId": ["01002010-38a7-11d8-a902-0050bf427e8f", "01002013-38a7-11d8-a902-0050bf427e8f", "..."],
          "SubjectId": "3bfd08a2-b020-ea11-a99d-00155d290a08"
          }] }
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    No document found for documentId {documentId} (10005)

    ServiceException

    No process found for processId {processId} (10015)

    ServiceException

    Not enough rights ({accessOperationName}, {accessOperationId}) (10071)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox