-
Notifications
You must be signed in to change notification settings - Fork 1k
Hub Sites REST API description inaccurate #8612
Copy link
Copy link
Closed
Labels
area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: 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 workIssues which are closed as tool old for active work
Metadata
Metadata
Assignees
Labels
area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: 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 workIssues which are closed as tool old for active work
Type
Fields
Give feedbackNo fields configured for issues without a type.
The text
Gets information about all hub sites that the current user can access.is inaccurate based on the existing behaviour, specifically the phrasethe 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 hubis either blank, or the current user is listed in there (this relates to theTargetsproperty 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
Targetsproperty 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 hubfeature 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.