@inrupt/solid-client
    Preparing search index...

    Function getAgentAccess

    • This function is still experimental and subject to change, even in a non-major release.
      

      Returns an Agent's explicitly-granted Access Modes for the given Resource.

      The function does not return Access Modes granted indirectly to the Agent through other ACL rules, e.g., public or group-specific permissions.

      Parameters

      • resourceInfo: WithAcl & WithResourceInfo & {}

        Information about the Resource to which the given Agent may have been granted access.

      • agent: string

        WebID of the Agent for which to retrieve what access it has to the Resource.

      Returns null | Access

      Access Modes that have been explicitly granted to the Agent for the given Resource, or null if it could not be determined (e.g. because the current user does not have Control access to a given Resource or its Container).