-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m365 spo homesite set #6489
Comments
Hi @reshmee011 once again thanks a lot for the effort put in this issue. These are my remarks:
Thinking out loud, is this endpoint something we could use? https://s-kainet.github.io/sp-rest-explorer/#/_api/SP.SPHSite/SetSPHSite |
@milanholemans: Thanks so much for the review helping to improve the specs. Please find my comments in line with the questions. • I have updated the description. I have tried /_api/SP.SPHSite/SetSPHSite with vivaConnectionsDefaultStart and it threw same error as bug #6066. From the browser's developer tools I deduced the endpoint |
Yes, that's true indeed, let's leave it named A few other remarks:
Just played a bit around with the endpoint, seems like this request is working for me: POST https://contoso-admin.sharepoint.com/_api/SPO.Tenant/UpdateTargetedSite
{
"siteUrl": "https://contoso.sharepoint.com",
"configurationParam": {
"IsInDraftModePresent": true,
"isInDraftMode": false,
"vivaConnectionsDefaultStart": true,
"IsVivaConnectionsDefaultStartPresent": true
}
} |
@milanholemans : I have updated it back to siteUrl and removed the short options for -1. /_api/SPO.Tenant/UpdateTargetedSite works and does not do anything with vivaConnectionsDefaultStart parameter. I tried passing vivaConnectionsDefaultStart parameter to it but the value of vivaConnectionsDefaultStart stayed the same. I can't figure out how to use it. |
Yes, that's something I experienced as well. Not sure if this is a bug in the API, but using the Viva Engage app in Teams, the option seems to work for me. |
Usage
m365 spo homesite set
Description
Updates the Viva Connections Experience / SharePoint home site settings like draft status , audiences and target license type
Options
-u, --url <url>
-d, --draftMode [draftMode]
false
.-a, --audienceIds [audienceIds]
-a, --audienceNames [audienceNames]
-t, --targetedLicenseType [TargetedLicenseType]
everyone
,frontLineWorkers
orinformationWorkers
Examples
Disables the Home site viva connection experience
Enables the Home site viva connection experience
Set the audience to everyone
Set the audience to frontline workers
Set the audience to information workers
Set the audience to M365 groups using M365 Groups Ids
Set the audience to M365 groups using M365 Groups Names
Default properties
No response
Additional Info
This is to fix the bug #6066 which requires a refactor to use a different REST endpoint
UpdateTargetedSite
following the changes to the SharePoint Home Site being merged into Viva Connection Experiences.The parameter vivaConnectionsDefaultStart seems redundant and I can't find how to use the REST endpoint
SetSPHSiteWithConfiguration
and hence can be removed.Happy to work on it after peer review.
The text was updated successfully, but these errors were encountered: