Changed Geo location of Team and now the associated site "weburl" so not correct.

Sullivan, Xray 1 Reputation point
2022-10-10T17:58:06.09+00:00

Hello,

I am working with Identity Governace Access Package Custom Extentions, and I have found a way to find the assosicated SharePoint site for the Team I am giving access to. I am doing to do some list orientated actions on the site. Everything was working fine with the graph call

https://graph.microsoft.com/beta/groups/{my-Group-ID}/sites/root

This call had the property "webUrl": "https://MyCompany.sharepoint.com/teams/MySite","

I change the geo loctaion per microsoft documentation and now I have errors thrown in my logic app.

Upon inspection I am now seeing that the "webUrl" has now change to this in my graph call

"webUrl": "https://MyCompany.sharepoint.com/teams/MySite2","

This is not the site for the Group at all. The new site is https://MyCompanygbr.sharepoint.com/teams/MySite.

When I do the same call from powershell I get the correct siteURl with Get-SPOUnifiedGroup -GroupAlias $Group

So first off why am I seeing a site that apparently got created when we moved the geo location and is not assoiscated with the Team. And, how do I get the same properties that I get with

Get-SPOUnifiedGroup -GroupAlias $Group

Thanks in advance.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Sullivan, Xray 1 Reputation point
    2022-10-12T17:21:11.49+00:00

    Connect-MicrosoftTeams
    Connect-SPOService -Url https://MyTenant-admin.sharepoint.com
    $Team = Get-Team -DisplayName "MyGroup"
    $Group = $Team.MailNickName

    Get-SPOUnifiedGroup -GroupAlias $Group
    Set-SPOUnifiedGroup -PreferredDataLocation GBR -GroupAlias $Group
    Start-SPOUnifiedGroupMove -GroupAlias $Group -DestinationDataLocation GBR

    timeout /t 60

    Get-SPOUnifiedGroupMoveState -GroupAlias $group

    0 comments No comments

  2. Sullivan, Xray 1 Reputation point
    2022-10-12T17:26:47.94+00:00

    Also, this is the result of Get-SPOUnifiedGroupMoveState

    GroupName : MyGroup
    MoveJobId : d7786da0-9f2d-6002-b92c-6bdf4d93c4e7
    SourceDataLocation : NAM
    DestinationDataLocation : GBR
    TimeStamp : 10/10/2022 10:29:55 PM
    MoveState : Success

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.