Module Values.CheckDocumentAccessResponseSource

Verifies if a user has access permissions for a specified document and returns the actual ACL attached to the document. Resolves user access on the document via user aliases and groups when verifying user access.

Sourcetype nonrec t = {
  1. userGroups : AssociatedGroups.t option;
    (*

    An array of groups the user is part of for the specified data source. Each group has a name and type.

    *)
  2. userAliases : AssociatedUsers.t option;
    (*

    An array of aliases associated with the user. This includes both global and local aliases, each with a name and type.

    *)
  3. hasAccess : Boolean.t option;
    (*

    A boolean value indicating whether the specified user has access to the document, either direct access or transitive access via groups and aliases attached to the document.

    *)
  4. documentAcl : DocumentAcl.t option;
    (*

    The Access Control List (ACL) associated with the document. Includes allowlist and denylist conditions that determine user access.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ThrottlingException of ThrottlingException.t
  5. | `ValidationException of ValidationException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?userGroups:??? -> ?userAliases:??? -> ?hasAccess:??? -> ?documentAcl:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `List of [> `Structure of (string * [> `Enum of string | `String of GroupName.t ]) list ] list | `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `String of String_.t ]) list ] list ]) list ] list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t