SDK Reference
Methods
Deprecated
GetProfileGroups

getProfileGroups

⚠️

Groups have been deprecated in favor of Contexts. If you're considering Groups for your project, check out createContext instead.


Returns an array of groups a user is a member of.

How to use?

const res = await orbis.getProfileGroups(did);

Parameters

  • did - DID of a user whose group memberships we are querying

Returns

[
  {
    stream_id: "k...",
    did: "did:pkh:..",
    group_id: "k...",
    group_details: {
        pfp: "https://arweave.net/...",
        name: "Orbis Community",
        description: "Official group to discuss the Orbis protocol."
        }
    },
  ...
]