Module Values.PrincipalSource

Provides user and group information for user context filtering.

Sourcetype nonrec t = {
  1. name : PrincipalName.t;
    (*

    The name of the user or group.

    *)
  2. type_ : PrincipalType.t;
    (*

    The type of principal.

    *)
  3. access : ReadAccessType.t;
    (*

    Whether to allow or deny document access to the principal.

    *)
  4. dataSourceId : DataSourceId.t option;
    (*

    The identifier of the data source the principal should access documents from.

    *)
}
Sourceval context_ : string
Sourceval make : ?dataSourceId:??? -> name:PrincipalName.t -> type_:PrincipalType.t -> access:ReadAccessType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of PrincipalName.t ]) 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