> For the complete documentation index, see [llms.txt](https://docs.bayunsystems.com/bayuncoresdk-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bayunsystems.com/bayuncoresdk-python/groups/get-unjoined-public-groups.md).

# 6.4 Get Unjoined Public Groups

The `getUnjoinedPublicGroups` function returns all the public groups of the company the employee is not a member of.

The function takes the following parameters :

* **sessionId** : Unique SessionId which is received in the authenticate function response.

{% tabs %}
{% tab title="Python" %}

```python
response = bayunCore.unjoinedPublicGroups("<sessionId>")
groups = response.getGroups()
print("\nUnjoined Public Groups Response : ")
for groupInfo in groups:
    print("Group Id : " + groupInfo.groupId)
    print("Group Name : " + groupInfo.name)
    print("Group Type : " + groupInfo.type)
```

{% endtab %}
{% endtabs %}
