# לא ניתן להוסיף משתמש לפורום Discourse מאתר וורדפרס כאשר המשתמש נוסף ב-membership

**URL:** https://meta.discourse.org/t/i-cannot-add-user-to-the-discouse-forum-from-a-wordpress-website-when-user-added-in-a-membership/300025
**Category:** Development
**Created:** [19 במרץ,‏ 2024,‏ 4:54pm UTC](https://meta.discourse.org/t/i-cannot-add-user-to-the-discouse-forum-from-a-wordpress-website-when-user-added-in-a-membership/300025 "2024-03-19T16:54:32Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [15 באפריל,‏ 2024,‏ 10:00pm UTC](https://meta.discourse.org/t/i-cannot-add-user-to-the-discouse-forum-from-a-wordpress-website-when-user-added-in-a-membership/300025/13 "2024-04-15T22:00:56Z")

</div>

> [@Haseeb\_Ahmed](#):
>
> it is again give a notification of review new user to the admin

To add to what @Firepup650 wrote, when your code calls

`DiscourseUtilities::add_user_to_discourse_group($user_id, $s2member_level_2_groups);`

it is calling a helper function that makes a request to the Discourse `sync_sso` route: [Sync DiscourseConnect user data with the sync\_sso route](https://meta.discourse.org/t/sync-discourseconnect-user-data-with-the-sync-sso-route/84398). That request is used to either update an existing user, or to create a new users. If the user with `$user_id` has never logged into your Discourse site, a new user will be created. They should still be added to the groups without any problem, but it will generate a notification for moderators because your site has enabled the `must approve users` site setting:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/4/c/44c7df571528f7bce05c93657b8480dd9ea44ce6.png)

---

_[View the full topic](https://meta.discourse.org/t/i-cannot-add-user-to-the-discouse-forum-from-a-wordpress-website-when-user-added-in-a-membership/300025)._
