# Providing multiple strategies when retrieving Connection list

**URL:** <https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076>\
**Category:** Get Help\
**Tags:** management-api, connections\
**Created:** [September 21, 2022, 9:15pm UTC](https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076 "2022-09-21T21:15:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick18](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nick18/32/40161_2.png) [@nick18](https://community.auth0.com/u/nick18)\
**Post date:** [September 21, 2022, 9:15pm UTC](https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076/1 "2022-09-21T21:15:46Z")

</div>

Please include the following information in your post:

- Which SDK this is regarding:
- SDK Version: Golang v0.10.1
- Platform Version: Latest?
- Code Snippets/Error Messages/Supporting Details/Screenshots:

**Is this a feature request or bug report?** If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.

I am unable to provide multiple `strategies` when querying the Connection List API.  
I’ve tried this using the Golang API as well as the Auth0 Management API in the Browser here: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Connections/get_connections)

```auto
/api/v2/connections?strategy=github&strategy=google-oauth2

```

If I specify both here, it only returns the first one.  
If I try comma delimiting, I get a 400 Bad Request

```auto
/api/v2/connections?strategy=github&strategy=google-oauth2
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Query validation error: 'Invalid value \"github,google-oauth2\"' on property strategy[0].",
  "errorCode": "invalid_query_string"
}

```

Golang example:

```auto
client.Connection.List(management.Parameter("strategy", "google-oauth2,github"))

```

The documentation states that I should be able to provide an `array(string)`  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/8/a81cef8dcbab55ac1aff19ddb82e688ff13126ba.png)

What is the correct format here?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 6, 2022, 9:24pm UTC](https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076/3 "2022-10-06T21:24:28Z")

</div>

Hey there @nick18!

I apologize for the delayed response here - I just tested this out myself using go-Auth0 and am experiencing the same thing.

I think it’s a known issue that multiple strategies won’t work in the Management API Explorer (annoying), but I was able to filter based on multiple strategies in Postman like: `https://{{auth0_domain}}/api/v2/connections?strategy=auth0&strategy=google-oauth2`

I just opened up a discussion internally to see if this is possible in the Go SDK - I’ll keep you posted!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 7, 2022, 6:01pm UTC](https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076/5 "2022-10-07T18:01:04Z")

</div>

Hey @nick18 following up here - After some research on our end it seems as though this is a known issue with the endpoint itself. Basically, it only accepts params like `strategy=auth0&strategy=google-oauth2` which is not currently supported by any of our SDKs. This is on the roadmap, however I’m not able to provide any sort of time frame and the only workaround I can recommend for now is getting all connections, and filtering on the strategies in your Go code itself.

I definitely recommend creating a [feedback request](https://community.auth0.com/c/feedback/95) as the more interest there is in adding this feature from the community the better!

---

<div class="post-metadata">

**Author:** ![nick18](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nick18/32/40161_2.png) [@nick18](https://community.auth0.com/u/nick18)\
**Post date:** [October 7, 2022, 10:02pm UTC](https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076/6 "2022-10-07T22:02:27Z")

</div>

Thanks for the response here @ty.frith ! Glad to know this is an issue and not just me 😅.  
The workaround you suggested is what I ended up going with.

I’ll definitely create a feedback request.

EDIT: feedback request can be found here: [Support filtering by multiple strategies in Management Connections API in Go SDK](https://community.auth0.com/t/support-filtering-by-multiple-strategies-in-management-connections-api-in-go-sdk/92000)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 21, 2022, 10:03pm UTC](https://community.auth0.com/t/providing-multiple-strategies-when-retrieving-connection-list/91076/7 "2022-10-21T22:03:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
