Classic APIs
ClassicGroupsApi
groupPermissionsForAllRoles

groupPermissionsForAllRoles

Gets permissions for all roles in a group.

Parameters

NameTypeDescription
groupIdGroupIdThe id of the group.

Example

const { data: allPerms } = await ClassicGroupsApi.groupPermissionsForAllRoles({ groupId: 5850082 }); 

Example Data

[
  {
    groupId: 5850082,
    role: {
      id: 38353814,
      name: "Guest",
      description: "A non-group member.",
      rank: 0,
    },
    permissions: {
      groupPostsPermissions: {
        viewWall: true,
        postToWall: false,
        deleteFromWall: false,
        viewStatus: false,
        postToStatus: false,
      },
      groupMembershipPermissions: {
        changeRank: false,
        inviteMembers: false,
        removeMembers: false,
      },
      groupManagementPermissions: {
        manageRelationships: false,
        manageClan: false,
        viewAuditLogs: false,
      },
      groupEconomyPermissions: {
        spendGroupFunds: false,
        advertiseGroup: false,
        createItems: false,
        manageItems: false,
        addGroupPlaces: false,
        manageGroupGames: false,
        viewGroupPayouts: false,
        viewAnalytics: false,
      },
      groupOpenCloudPermissions: {
        useCloudAuthentication: false,
        administerCloudAuthentication: false,
      },
    },
  },
] 

Endpoint

GET /v1/groups/{groupId}/roles/permissions