How to check using SharePoint/other API if a site has been created from Yammer/Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-2837839%22%20slang%3D%22en-US%22%3EHow%20to%20check%20using%20SharePoint%2Fother%20API%20if%20a%20site%20has%20been%20created%20from%20Yammer%2FTeams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2837839%22%20slang%3D%22en-US%22%3E%3CP%3EDears%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20check%20if%20the%20SharePoint%20Online%20site%20has%20been%20created%20from%20Yammer%20or%20in%20different%20way%20using%20SPO%2Fother%20api%3F%3C%2FP%3E%3CP%3EI%20see%20this%20information%20available%20in%20the%20SharePoint%20Admin%20Portal%20under%20Active%20sites%20in%20the%20General%20Tab%2C%20somethin%20like%3A%3C%2FP%3E%3CP%3E1.%20For%20site%20created%20from%20Yammer%3A%20Created%20by%20XXX%20on%20%5Bdatetime%5D%20from%20Yammer%3C%2FP%3E%3CP%3E2.%20For%20site%20created%20from%20Teams%3A%20Created%20by%20XXX%20on%20%5Bdatetime%5D%20from%20Microsoft%20Teams%3C%2FP%3E%3CP%3E3.%20For%20site%20created%20by%20PnP%20Provisioning%3A%26nbsp%3BCreated%20by%20XXX%20on%20%5Bdatetime%5D%20from%20PnP%20provisioning%3C%2FP%3E%3CP%3E4.%20In%20other%20cases%3A%26nbsp%3BCreated%20by%20XXX%20on%20%5Bdatetime%5D%20from%20Microsoft%20365%20Group%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20apply%20the%20site%20template%20for%20new%20sites%20created%20for%20Yammer.%20I%20know%20I%20can%20apply%20them%20for%20a%20site%20type%2C%20for%20example%20Team%20Site%2C%20but%20I%20need%20to%20limit%20it%20for%20Yammer%20sites%20only.%20So%20the%20idea%20was%20to%20check%20how%20the%20site%20was%20created%20for%20example%20from%20MS%20Flow%2FAzure%20Function%20and%20then%20apply%20the%20site%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20not%20find%20this%20information%20in%20the%20Web%2FSite%20properties.%20I%20could%20see%20the%20WebTemplate%20used%20%22Group%22%2C%20but%20this%20is%20used%20for%20Yammer%20and%20Teams%20as%20well%20and%20I%20need%20to%20limit%20it%20to%20Yammer%20only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBR%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2837839%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Dears,

 

How can I check if the SharePoint Online site has been created from Yammer or in different way using SPO/other api?

I see this information available in the SharePoint Admin Portal under Active sites in the General Tab, somethin like:

1. For site created from Yammer: Created by XXX on [datetime] from Yammer

2. For site created from Teams: Created by XXX on [datetime] from Microsoft Teams

3. For site created by PnP Provisioning: Created by XXX on [datetime] from PnP provisioning

4. In other cases: Created by XXX on [datetime] from Microsoft 365 Group

 

I need to apply the site template for new sites created for Yammer. I know I can apply them for a site type, for example Team Site, but I need to limit it for Yammer sites only. So the idea was to check how the site was created for example from MS Flow/Azure Function and then apply the site template.

 

I could not find this information in the Web/Site properties. I could see the WebTemplate used "Group", but this is used for Yammer and Teams as well and I need to limit it to Yammer only.

 

BR,

0 Replies