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

    Function setAgentDefaultAccess

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

      Modifies the default ACL (Access Control List) to set an Agent's Access Modes for the Container's children. Specifically, the function returns a new default ACL initialised with the given ACL and new rules for the Agent's access.

      If rules already exist for the Agent in the given ACL, in the returned ACL, they are replaced by the new rules.

      This function does not modify:

      • Access Modes granted indirectly to the Agent through other ACL rules, e.g., public or group-specific permissions.
      • Access Modes granted to the Agent for the Container Resource itself.
      • The original ACL.

      Parameters

      • aclDataset: AclDataset

        The SolidDataset that contains Access-Control List rules.

      • agent: string

        The Agent to grant specific Access Modes.

      • access: Access

        The Access Modes to grant to the Agent.

      Returns Readonly<{}> & WithResourceInfo & { internal_accessTo: string } & {
          internal_changeLog: { additions: Quad[]; deletions: Quad[] };
      }

      A new default ACL initialised with the given aclDataset and access for the agent.