Google "no-reply" user pending approval

AI-generated summary

In a Support thread titled “Google ‘no-reply’ user pending approval,” user alehandrof reported an unexpected pending approval for a user with the email no-reply@accounts.google.com. The user suspected that Gmail’s “Less secure apps” setting was the root cause, as their Discourse reply address was configured to use a non-existent notification email.

Helper fefrei suggested the account might be a “staged user” created by a notification email, asking if it contained posts. When alehandrof deleted the account, it reappeared, confirming the issue persisted. fefrei then advised checking the /admin/email/rejected logs to find the specific error message.

Upon checking, alehandrof discovered the error was logged and caused by a name change on the account triggering a poll during the edit. After deleting the account again, the issue appeared resolved. fefrei noted that the logging feature was implemented by zogstrip. Finally, alehandrof identified a specific Discourse setting likely responsible for the behavior but admitted uncertainty about disabling it. zogstrip clarified that Discourse creates staged users when processing emails sent to or from no-reply@accounts.google.com. alehandrof thanked the group and referenced a thread explaining staged users.

I have a “Google” user with an email of no-reply@accounts.google.com pending approval.

I’m not sure why this came about. We use Google Apps to handle in-bound email. The email address I’m using for replies connect-replies+%{reply_key}@example.com. My notification email is connect-noreply@example.com, which doesn’t actually exist.

Ideas?

Hmm. I just realised that I didn’t have Less secure apps option in Gmail enabled for the connect-replies@example.com account. Might this be the root cause?

Is this account staged? Does it have posts?

I think Google sent you a notification mail for something, which cased a staged account to be created.

It seem so, but it’s not something I set up:

I don’t know if you saw my second post. I think Gmail may have replied to the email because it rejected the signup from Discourse, because it wasn’t secure enough. I’ll delete this account in Discourse now that I have allowed Less secure apps to sign in to that Google Apps account. And see how it goes.

Nope, it wasn’t that. The account re-appeared after I deleted it.But I’m pretty sure it’s related. No sure how, though.

Does the account have any posts? If so, they should give you the reason why Google mailed you. If not, the rejection should have been logged in /admin/email/rejected – click on the error message to see the message that was received.

Thank you! It was logged. I had changed the name of the account and it was polled while I was doing that, creating an error. Deleted the account again. Hopefully that’s the end of that.

Great – so give a :thumbsup: to @zogstrip who implemented this log just this Monday :wink:

Incidentally, I’m pretty sure that this issue is caused by this setting:

But I don’t understand enough about it to turn it off.

You probably got an email that was sent to and/or from no-reply@accounts.google.com and a staged user was created when Discourse processed that email.

Yes. I was confused about what “staged users” actually are. But you answer that question very thoroughly here: