Query Communities

The queryCommunities method can be useful for users who are new to your app or are exploring their community options. By providing a way to explore for communities, you can help users to discover the full range of community options available within your app.

To query communities with certain criteria, the following parameters are used:

  • displayName allows you to filter communities based on the community's displayName. (deprecated)

  • filter/membership allows you filter communities based on the logged-in user membership status.

  • categoryId allows you filter communities based on community categories.

  • sortBy allows you filter communities based on the order that the communities were created or based on alphabetical order, last created, and first created.

  • includeDeleted allows you specify if you want to include deleted communities in your query. By passing true or false to this method, you can include or exclude deleted communities from the results.

If you'd like to fetch all communities, you can pass the keyword as null. (deprecated)

Search for communities

To search for communities, users can call the relevant method and provide the desired keyword, membership options and other parameters.

If no keyword is supplied, the list of users for the specified community will be sorted by the date they joined.

To search for communities with certain criteria, the following parameters are used:

  • keyword allows you to filter communities based on the community's displayName.

  • filter/membership allows you filter communities based on the logged-in user membership status.

  • categoryId allows you filter communities based on community categories.

  • sortBy allows you filter communities based on the order that the communities were created or based on alphabetical order, last created, and first created.

  • includeDeleted allows you specify if you want to include deleted communities in your query. By passing true or false to this method, you can include or exclude deleted communities from the results.

Last updated