SSO and responses by email

AI-generated summary

Edward_Weiss is managing WordPress-Discourse SSO integration via PaidMemberships Pro, syncing group membership based on membership status. He asks whether users who interact only via email will retain email access after their WordPress membership expires. simon clarifies that users will continue receiving emails until their Discourse account is manually or programmatically deactivated—e.g., via API call upon membership expiry. Edward then asks whether /admin/users/sync_sso calls are logged when verbose SSO logging is enabled. simon explains that such calls are only logged if they result in creating a new user (logged as “Verbose SSO log: New User”); existing users do not generate log entries. This confirms that silent syncs for existing users won’t appear in logs, which may explain Edward’s observation of no records. The discussion centers on SSO behavior for email-only users and logging transparency during sync operations.

Hi all,

Thanks for your help with my previous Wordpress/Discourse question. I had set up memberships with PaidMemberships Pro and was modifying the SSO payload to change group membership on Discourse based on PMP membership status. All is fine on that end.

A quick follow-up: most of my users are interacting with Discourse through email alone, without logging in, either to Discourse or Wordpress. If their membership to the Wordpress site expires, does that mean they will retain the ability to receive/reply to emails until they log in to Discourse proper and trigger an SSO payload?

Thanks for your patience!

Ed

They will keep receiving emails until their email preferences are updated, or their accounts on Discourse are deactivated, suspended, or deleted. This can either be done manually, or through making an API call to Discourse when a membership expires.

Thanks, Simon.

One more point of clarification: if I try to sync membership status through /admin/users/sync_sso, should these calls be logged if verbose SSO logging is enabled? I’ve tried doing this and I don’t see any record so far.

Calls to the sync_sso route are only logged if a new user is created through the call. In that case, you will see a log item beginning with Verbose SSO log: New User.

If the user already exists on the system there won’t be a log item.