-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Labels
area: model 📐Related to the core SDK modelsRelated to the core SDK modelsquestionFurther information is requestedFurther information is requested
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.

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
Metadata
Assignees
Labels
area: model 📐Related to the core SDK modelsRelated to the core SDK modelsquestionFurther information is requestedFurther information is requested