Cannot join hub site, because Approval Token is needed #1193
Closed
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