Skip to content

Invalid response in from /_api/HubSites #6537

@siata13

Description

@siata13

Category

  • Bug

Describe the bug

When Hubsite is configured to limit the people who can associate sites with the hub, SP REST call doesn't return the hubsite information from /_api/HubSites, even if user has access there.

Steps to reproduce

  1. Go to SP Admin site collection, select 'Active sites'
  2. Select hubsite, set 'People who can associate sites with this hub' with any user in Hub settings.
  3. Use different account that has an access to configured hubsite and execute GET request to '/_api/HubSites' endpoint.
  4. Previously configured hubsite is not included in the result set.

Expected behavior

Information about the hubsite should be retrieved, regardless the user is a part of 'People who can associate sites with this hub' set.

Environment details (development & target environment)

Tested with SPFx 1.11, but the problem is an API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APIstatus:to-be-reviewedIssue needs to be reviewed by Microsoft for additional follow up / review.type:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions