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

    Function setGroupResourceAccess

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

      Modifies the resource ACL (Access Control List) to set the Access Modes for the given Group. Specifically, the function returns a new resource ACL initialised with the given ACL and new rules for the Group's access.

      If rules for Groups's access already exist 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 Groups through other ACL rules, e.g., public or Agent-specific permissions.
      • Access Modes granted to Groups for the child Resources if the associated Resource is a Container.
      • The original ACL.

      Parameters

      • aclDataset: AclDataset

        The SolidDataset that contains Access-Control List rules.

      • group: string

        The Group to grant specific Access Modes.

      • access: Access

        The Access Modes to grant to the Group for the Resource.

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

      A new resource ACL initialised with the given aclDataset and access for the group.

      1.4.0