Skip to content

Cannot join hub site, because Approval Token is needed #1193

Closed
@mjonila

Description

Category

  • Bug

Describe the bug

While using Ctx.Site.JoinHubSiteAsync(hubSite.Id) it spits the error :
This Hub Site requires approval to join. Please resubmit this request with an Approval Token from the Hub Site admin.

Certainly Hub site options have "Require approval for associated sites to join" enabled.
Untitled1

However I see no way to get Approval Token or enter it somehow into JoinHubSiteAsync method. There is PowerAutomate action for getting ApprovalToken, but I don't know how it works.

How to fix this problem ?

Steps to reproduce

In Hub site properties enable "Require approval for associated sites to join" and use JoinHubSiteAsync(hubSiteId) to join a site into a hub.

Expected behavior

Either allow join without token or provide a method to acquire ApprovalToken and feed it into JoinHubSiteAsync method

Metadata

Assignees

Labels

area: model 📐Related to the core SDK modelsquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions