Site icon WinCert

Account (my UPN) has been blocked on this device by your administrator

<p>One of the latest issues I had with M365 was the Outlook app on my mobile phone&period; After I had opened Outlook to check for my e-mails I was a bit surprised when I saw the following message in my Inbox&colon;<&sol;p>&NewLine;<p><strong>Account &lpar;my UPN&rpar; has been blocked on this device by your administrator&period;<&sol;strong><&sol;p>&NewLine;<p><img class&equals;"alignnone size-full wp-image-4624" src&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2022&sol;05&sol;IMG&lowbar;0850&period;png" alt&equals;"" width&equals;"369" height&equals;"800" &sol;><&sol;p>&NewLine;<p>The funny thing is the fact that I am one of the administrators of our tenant&period; As I wasn&&num;8217&semi;t able to find anything strange in the EAC &lpar;Exchange Admin Center&rpar; I&&num;8217&semi;ve opened Powershell and connected to my tenant to see what&&num;8217&semi;s going on&period;<&sol;p>&NewLine;<p>I have run Powershell in Admin mode and connected to my exchange online with the following command&colon;<&sol;p>&NewLine;<p><strong>connect-exchangeonline<&sol;strong><&sol;p>&NewLine;<p>Since I had the<strong> iOS version 15&period;4&period;1<&sol;strong> I have used the following command to list my device and get InTune <strong>device ID&colon;<&sol;strong><&sol;p>&NewLine;<p><strong>Get-MobileDevice &&num;8211&semi; Mailbox &lt&semi;UPN&gt&semi; &vert; where &lbrace;&dollar;&lowbar;&period;deviceos -eq &&num;8220&semi;iOS 15&period;4&period;1&rcub;<&sol;strong><&sol;p>&NewLine;<ul>&NewLine;<li>Replace &lt&semi;UPN&gt&semi; with your M365 UPN or e-mail address&period;<&sol;li>&NewLine;<&sol;ul>&NewLine;<p><img class&equals;"alignnone size-full wp-image-4625" src&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2022&sol;05&sol;Screenshot-2022-05-19-192930&period;jpg" alt&equals;"" width&equals;"851" height&equals;"339" &sol;><&sol;p>&NewLine;<p>After that&comma; I could see that my device with Device ID was in <strong>Blocked DeviceAccessState<&sol;strong> by the Global policy&period;<&sol;p>&NewLine;<p>Now&comma; I had to unblock my device with the following Powershell command&colon;<&sol;p>&NewLine;<p><img class&equals;"alignnone size-full wp-image-4626" src&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2022&sol;05&sol;Screenshot-2022-05-19-193219&period;jpg" alt&equals;"" width&equals;"1028" height&equals;"474" &sol;><&sol;p>&NewLine;<p><strong>Set-CASMailbox -Identinty &lt&semi;UPN&gt&semi; -ActiveSycnAllowedDevice IDs &&num;8220&semi;&lt&semi;enter device ID that you have received from the previous command&gt&semi;&&num;8221&semi;<&sol;strong><&sol;p>&NewLine;<ul>&NewLine;<li>Replace the &lt&semi;UPN&gt&semi; with your M365 UPN or e-mail address&period;<&sol;li>&NewLine;<&sol;ul>&NewLine;<p>Now to check if everything is OK we can use the following commands&colon;<&sol;p>&NewLine;<p><strong>Get-CSMailbox -Identinty &lt&semi;UPN&gt&semi; &vert; fl &ast;active&ast;<&sol;strong><&sol;p>&NewLine;<p>This command will show us <strong>ActiveSyncAllowedDevice<&sol;strong> IDs&period;<&sol;p>&NewLine;<p>Then&comma; we can use the following command to see if the <strong>DeviceAccessStage<&sol;strong> was actually changed to <strong>Allowed<&sol;strong>&period;<&sol;p>&NewLine;<p>If the device is now in the <strong>Allowed<&sol;strong> state you might need to wait for 15-30 minutes in order for changes to take effect&period; If no change happens in 30 minutes&comma; try to restart your Outlook mobile app&period;<&sol;p>&NewLine;<p>I hope this helps with the <strong>Account &lpar;my UPN&rpar; has been blocked on this device by your administrator<&sol;strong> error message&period;<&sol;p>&NewLine;

Exit mobile version