Contents
Why is PowerShell new spsite could not find user?
The error I’m getting is: New-SPSite : User cannot be found. I can actually create the site when I use the username format DOMAIN\\admin, so for some reason the cmdlet doesn’t want to accept my claim unless it’s a windows account.
The New-SPSite cmdlet creates a new site collection with the URL and owner that the Url and OwnerAlias parameters. This cmdlet can create site collections in either the SharePoint Server mode which uses the legacy versions of templates and features, or can be created in SharePoint Server mode which uses the new versions of templates and features.
Is there a bug in the SharePoint PowerShell cmdlets?
Set-SPSite : The specified user i:05.t|adfs|[email protected] could not be found. Is this a bug in the SharePoint PowerShell cmdlets?
SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 Specifies whether to create a new site using the Site Master. The valid values are True or False. Describes the new site. If no value is specified, the value is left blank.
Specifies the ID or login name of the user to be returned. The type must be a valid ID or login name, such as the format of ‘CONTOSO\\jdoe’ for Classic Windows Authentication or ‘i:0#.w|CONTOSO\\jdoe’ for Windows Claims. Specifies the maximum number of users to return. The default value is 500. Specifies the Web site to be used as a scope.
Is the user admin at newtenant.com valid?
The user [email protected] is an account which is valid and can be used to login via ADFS (although I’m assuming this doesn’t matter, because from my understanding setting -OwnerAlias should just accept anything if it’s reading a SAML claim) However, the command is failing every time due to an invalid -OwnerAlias parameter.