Skip to content

Hub Sites REST API description inaccurate #8612

@jimmywim

Description

@jimmywim

The text Gets information about all hub sites that the current user can access. is inaccurate based on the existing behaviour, specifically the phrase the current user can access.

The existing behaviour appears to be that the hub sites that are returned are the hub sites where the People who can associate sites with this hub is either blank, or the current user is listed in there (this relates to the Targets property on a particular Hub).

Either this documentation needs to be updated to reflect this fact if this is indeed the intended behaviour, or a bug raised against the API if this is not the intended behaviour.

I would prefer if any user can see all hub sites with this API (or sites they have at least Read access to), and other APIs for Hub Sites (e.g. Join Hub Site) actively prevent the user from joining if they are not listed in the Targets property for the hub.

I currently use this API to retrieve hub site data for the tenant and use a custom SPFX extension to render a custom hierarchical navigation component, and presently I have to instruct users to not use the People who can associate sites with this hub feature in the admin centre, otherwise, users not listed here cannot retrieve information about the hub and it won't render.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions