# Cannot add user to discourse group

**URL:** <https://meta.discourse.org/t/cannot-add-user-to-discourse-group/320036>\
**Category:** Development\
**Tags:** wordpress\
**Created:** [August 4, 2024, 11:03am UTC](https://meta.discourse.org/t/cannot-add-user-to-discourse-group/320036 "2024-08-04T11:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [August 8, 2024, 1:43pm UTC](https://meta.discourse.org/t/cannot-add-user-to-discourse-group/320036/4 "2024-08-08T13:43:27Z")

</div>

Sorry for the late answer.

Your [WP Discourse](https://github.com/discourse/wp-discourse) utility function relies on the API key and username.  
The options are located in the general settings:

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

You must provide a valid API key and username here; the username must be an admin.

Can you check if that’s the case?

---

_[View the full topic](https://meta.discourse.org/t/cannot-add-user-to-discourse-group/320036)._
