Search Results for

    Show / Hide Table of Contents

    Method GetUserAccessRights

    GetUserAccessRights(String, String)

    Get user access rights

    Declaration
    List<UserAccessRightsContract> GetUserAccessRights(string connectionId, string userId)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String userId

    The user id. If null connection user will be taken. See also Id

    Returns
    Type Description
    System.Collections.Generic.List<UserAccessRightsContract>

    List of allowed folder, document and process access operations

    Examples

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

    Example get user access rights

    {
       "connectionId": "e08482f2-eb69-4693-b2c1-cdc87f641ec2",
       "userId": "172935af-62e0-e911-a94a-00155d290a08"
    }

    Response:

    {
        "GetUserAccessRightsResult": [
            {
                "AccessRights": [
                    "01002075-38a7-11d8-a902-0050bf427e8f",
                    "01002014-38a7-11d8-a902-0050bf427e8f",
                    "01002010-38a7-11d8-a902-0050bf427e8f",
                    "01002021-38a7-11d8-a902-0050bf427e8f",
                    "01002020-38a7-11d8-a902-0050bf427e8f",
                    "658EE35A-AFFD-422F-8D2D-E1CF2606B1BA"
                ],
                "ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f"
            },
            {
                "AccessRights": [
                    "01002075-38a7-11d8-a902-0050bf427e8f",
                    "01002014-38a7-11d8-a902-0050bf427e8f",
                    "01002010-38a7-11d8-a902-0050bf427e8f",
                    "01002021-38a7-11d8-a902-0050bf427e8f",
                    "01002020-38a7-11d8-a902-0050bf427e8f",
                    "01002089-38a7-11d8-a902-0050bf427e8f",
                    "01002076-38a7-11d8-a902-0050bf427e8f",
                    "01002077-38a7-11d8-a902-0050bf427e8f",
                    "01002078-38a7-11d8-a902-0050bf427e8f",
                    "01002079-38a7-11d8-a902-0050bf427e8f",
                    "658EE35A-AFFD-422F-8D2D-E1CF2606B1BA"
                ],
                "ProtectionDomainId": "616d613d-b375-ea11-a010-00155d109000"
            }
        ]
    }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

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

    Back to top Copyright © Kendox