getPermissionSchemeGrants method

Future<PermissionGrants> getPermissionSchemeGrants({
  1. required int schemeId,
  2. String? expand,
})

Returns all permission grants for a permission scheme.

Permissions required: Permission to access Jira.

Implementation

Future<PermissionGrants> getPermissionSchemeGrants(
    {required int schemeId, String? expand}) async {
  return PermissionGrants.fromJson(await _client.send(
    'get',
    'rest/api/3/permissionscheme/{schemeId}/permission',
    pathParameters: {
      'schemeId': '$schemeId',
    },
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
  ));
}