Sanity Library Reference Docs
    Preparing search index...
    • Load the project's assignable roles. Requires sanity-project-roles: read. An unavailable catalog returns an empty array. Assignment controls then offer member-held roles and retain roles already selected.

      Results, including failed reads returned as empty arrays, are cached per client and project. Remounting with the same client does not retry the read; reload the page to clear that cache.

      Parameters

      Returns Promise<ProjectRole[]>