What to do when you receive a G Suite "Device Policy Violation Notice"

table of contents
This is Kida from the Content Business Department ヽ( ´¬`)ノ
The other day, when I tried to view Google Calendar (app version) on my iPhone, I a "Device Policy Violation" message and had a really hard time. I searched and looked into it, but I couldn't find any articles with a solution...
Just when I was about to give up, I tried logging in again, just in case, and the problem was solved quite easily, so I would like to write down the solution here for anyone who finds themselves in a similar situation
The dreaded "Device Policy Violation Notice" that suddenly appeared

It was around last week, I remember, when I was out and about, trying to check my schedule as usual, I opened the Google Calendar app on my iPhone and saw a message that read, "Device Policy Violation Notice."
{Huh? What is this...?
The account I was trying to check my schedule on was a G Suite account, so I panicked, wondering if I had done something wrong. "Is it a violation? Is it a violation of policy? Is it something like unauthorized access?"
Try searching for "Device policy violation notice"
I searched for "notice regarding device policy violation" and looked at various articles, and found several that said things like, "I logged in as a G Suite administrator, had the device deleted through device management, and then logged in again, and it seemed to be fixed."
Moreover, this seems to be a common phenomenon with G Suite
For now, I tried deleting the iPhone login from G Suite device management under G Suite management and logging in again

It was impossible after all
If you look closely, you'll notice it says "passcode."
I had given up, thinking, "Oh well, never mind," but if I can't install the Google Calendar app because it violates device policy, then naturally I can't check my Gmail either
This is really inconvenient... I tried logging in again, but it still didn't work..
It doesn't work even if I close the app or power cycle the iPhone
I read the error again and finally realized what it was

It says you need to set a passcode!!!
Speaking of which, I use an iPhone X, and a few days ago the Face ID authentication broke, so I turned off the passcode because it was a hassle to have to enter the passcode every time I opened my iPhone
Try turning your iPhone passcode back on
It seems too clever to turn off the passcode and not be able to access my G Suite account... I was skeptical and wondered if such a thing was even possible, so I decided to reset the passcode on my iPhone

Go to [Settings ≫ Face ID & Passcode] and set it to [Turn Passcode On]

After setting the passcode, log in again
Once you've set the passcode, open Google Calendar..

The calendar icon was flipping along just like usual! I was so impressed! And of course, I was able to confirm that I was logged in to Gmail too!!
As you said, it seems the problem was with the passcode
summary
The reason I didn't immediately realize that I couldn't log in because I turned off the passcode was because
① This message didn't appear immediately after I turned off the iPhone passcode.
② I didn't close the apps I had open on my iPhone every day, so when I suddenly decided to close and restart it, my Google Calendar wouldn't appear, which panicked me.
③ I didn't read the message properly (it said I needed to enter a passcode).
④ I couldn't find an article that solved the
. ⑤ I didn't expect that the settings on my iPhone would prevent me from logging in to my Google account. ⑥ I
underestimated the intelligence of G Suite.
But that's the main reason
The error message is very helpful, so I'll have to read it carefully from now on. Also, never assume anything
This will allow me to continue enjoying a comfortable G Suite life
If you're in the same situation and can't find a solution, be sure to check this out!
37