Network service account sptimerv4 gets added as a primary site collection admin

%3CLINGO-SUB%20id%3D%22lingo-sub-1086112%22%20slang%3D%22en-US%22%3ENetwork%20service%20account%20sptimerv4%20gets%20added%20as%20a%20primary%20site%20collection%20admin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1086112%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%20TenantExtensions.CreateSiteCollection%20Method%20to%20create%20site%20collections%20in%20SharePoint%20Online%20and%20the%20site%20collections%20are%20getting%20created%20as%20expected%20but%20when%20it%20comes%20to%20adding%20Primary%20Site%20Owner%20to%20the%20site%2C%20at%20times%20system%20is%20not%20taking%20SiteOwnerLogin%20value%20which%20we%20pass%20through%20SiteEntity%20object%20to%20CreateSiteCollection%20method.%20Instead%2C%20sptimerv4%20account%20(i%3A0%23.w%7Cnt_service%5Csptimerv4)%20is%20added%20as%20a%20Primary%20site%20collection%20administrator.%20Not%20sure%20how%20sptimerv4%20account%20gets%20added%20a%20Primary%20Site%20Collection%20Administrator%20even%20though%20the%20site%20creation%20job%20in%20a%20.Net%20farm%20where%20no%20such%20special%20account%20exists.%20Any%20idea%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1086112%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1114793%22%20slang%3D%22en-US%22%3ERe%3A%20Network%20service%20account%20sptimerv4%20gets%20added%20as%20a%20primary%20site%20collection%20admin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1114793%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F504347%22%20target%3D%22_blank%22%3E%40yuvaraj2020%3C%2FA%3E%26nbsp%3BI%20got%20the%20same%20result%20today%20when%20I%20created%20a%20site%20from%20the%20SharePoint%20admin%20center.%20When%20creating%20the%20site%20I%20put%20myself%20as%20an%20admin%2C%20but%20when%20it%20was%20created%20the%20sptimerv4%20account%20was%20set%20as%20the%20primary%20admin.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1324307%22%20slang%3D%22en-US%22%3ERe%3A%20Network%20service%20account%20sptimerv4%20gets%20added%20as%20a%20primary%20site%20collection%20admin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1324307%22%20slang%3D%22en-US%22%3ESame%20here...%3C%2FLINGO-BODY%3E
Occasional Visitor

I'm using TenantExtensions.CreateSiteCollection Method to create site collections in SharePoint Online and the site collections are getting created as expected but when it comes to adding Primary Site Owner to the site, at times system is not taking SiteOwnerLogin value which we pass through SiteEntity object to CreateSiteCollection method. Instead, sptimerv4 account (i:0#.w|nt_service\sptimerv4) is added as a Primary site collection administrator. Not sure how sptimerv4 account gets added a Primary Site Collection Administrator even though the site creation job in a .Net farm where no such special account exists. Any idea?

2 Replies

@yuvaraj2020 I got the same result today when I created a site from the SharePoint admin center. When creating the site I put myself as an admin, but when it was created the sptimerv4 account was set as the primary admin.