# Make an external http request from discourse

**URL:** https://meta.discourse.org/t/make-an-external-http-request-from-discourse/126054
**Category:** Development
**Created:** [August 17, 2019, 10:56am UTC](https://meta.discourse.org/t/make-an-external-http-request-from-discourse/126054 "2019-08-17T10:56:20Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [August 17, 2019, 1:32pm UTC](https://meta.discourse.org/t/make-an-external-http-request-from-discourse/126054/10 "2019-08-17T13:32:42Z")

</div>

I think you should read the links shared above. Also, this wordpress plugin does a similar job but for wordpress so you can check that too.

> [@Manage group membership in Discourse with WP Discourse SSO](https://meta.discourse.org/t/managing-discourse-group-membership-with-wp-discourse/74724):
>
> [WP Discourse](https://github.com/discourse/wp-discourse) functions The [WP Discourse](https://github.com/discourse/wp-discourse) plugin has a couple of functions that can be used to associate WordPress users with Discourse groups. These functions are only enabled on sites that are using WordPress as the SSO provider for Discourse. add\_user\_to\_discourse\_group( $user\_id, $group\_names ) [View Code](https://github.com/discourse/wp-discourse/blob/main/lib/utilities.php#L278-L301) remove\_user\_from\_discourse\_group( $user\_id, $group\_names ) [View Code](https://github.com/discourse/wp-discourse/blob/main/lib/utilities.php#L303-L326) Each of these functions take the same two parameters: $user\_id: the WordPress user’s id $group\_names: a comma separat…

---

_[View the full topic](https://meta.discourse.org/t/make-an-external-http-request-from-discourse/126054)._
