Forum Discussion

FireDog's avatar
FireDog
Copper Contributor
Jan 06, 2021
Solved

Team Creation with Graph API not creating SharePoint site

Hi   I am using Powershell / GraphAPI to create:   A M365 Dynamic Group Then a Team based on this Group   The issue i have is both are created as expected, but I never get a Sharepoint Group L...
  • FireDog's avatar
    FireDog
    May 17, 2021

    Shane_Blake Hi - thanks for reply. I actually raised a PS call in the end, and it turned out to be a problem that Microsoft had to fix at the back end - related to creating the SharePoint site on the time. I think it was a timing issue.

     

    It wasnt fixed as part of my call, sounds like it was being fixed anyway.

     

    I did read about the direct members - i add them now as part of my code anyway so we dont have just an owner without being a member. But it doesnt seem to effect anything for me if they are just owners - the site creation is all via Graph anyway so it doesnt care. 

     

    Im using AD groups (on prem) and have a sync framework to manage membership - it fits in with our onboarding processes so we can assign Teams to departments / functions using AD Attributes, and the AD groups add 'exceptions' ie someone from department A wants to join the department B team, we drop them in the Exceptions AD group for the Department B team and the script does the rest. Ideal for Service Desk / integration into a JLT process. Decided to avoid cmdlets and do purely RESTAPI as ive hit so many issues with bugs.

     

    Cheers

     

     

Resources