Forum Discussion
Changing Access Type via PowerShell
Mmm...very weird, I have just pasted your PS code in the PowerShell console and I have not had any error...however I'm seeing a warning seeing that the comand execution finished correctly, but not configuration has been modified for every group on the tenant. If I run the Set-UnifiedGroup "Group Name" -AccessType "Public" it works without problems....and also to add, it's not enougt (I believe) to be Global Administrator to change this setting for each Group. You need to be an Owner in each Group...adding some more folks here TonyRedmond cfiessinger VasilMichev
When using PowerShell with ISE I don't even get access to tthe -AccessType Paramater to use? I have tested in a demo tenant and seem to have access. But when trying this through a prod tenant even though the account is a global admin -AccessType is not available.
There is another issue in play here in that the organisations email is on premise and NOT in Exchange Online adn there is NO Hybrid set up either. All these groups have created as a result of users accessing Planner and creating Plans.
- TonyRedmondNov 15, 2016MVP
I don't know how you have connected to Exchange Online using PowerShell ISE. It's odd that the -AccessType parameter is unavailable. Is it the same with the normal PowerShell console?
Even though users might use another email system (non-hybrid, outside Office 365) for their day-to-day email, do they have Exchange Online mailboxes? If they are assigned something like an E3 license, they will get an Exchange mailbox automatically... So the mailboxes might be there and are linked to Office 365 accounts but are not being used.
- AnonymousNov 15, 2016
So I have tried in a number of different tentants all with Global Administrator Accounts.
In some tenants I get this (-AccessType Parameter is available):
In other tenants I get this (No -AccessType Paramater available)
Of course the tenant I need to change AccessType on is one of the ones that does not have access to this parameter for some reason....Frustrating. Any insights, thoughts, ideas etc would be greatly appreciated.
- TonyRedmondNov 15, 2016MVP
I don't think this is a First Release thing because the AccessType parameter has been around for quite a while. I do think this is something you need to report to Microsoft in a support call as only they can resolve the issue.
- AnonymousNov 15, 2016
So I am running this in a demo tenant and it works
$userCredential = Get-Credential
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $session
Set-UnifiedGroup -Identity "Name here" -AccessType PrivateWhen running the same commands in a prod tenant there is no ability to use the -AccessType Parameter....