NerdGraph tutorial: Create custom role for Scorecards

preview

We're still working on this feature, but we'd love for you to try it out!

This feature is currently provided as part of a preview program pursuant to our pre-release policies.

A Scorecard serves as a container for various rules that collectively assess adherence to defined standards. Scorecards use rules to monitor compliance across different entities and teams, identify areas for improvement, and ensure alignment with both internal and external requirements. This document provides instruction on how to create and manage Scorecards and its rules in New Relic.

In New Relic, two types of users can manage Scorecards:

  • Organization Admin
  • Scorecard custom role users

This section provides instructions on using NerdGraph GraphQL mutations to create a custom role for managing Scorecards and associated rules.

To create a Scorecards administrator custom role, you need to:

Prerequisites:

Mutations

New Relic provides various NerdGraph mutations to create custom role for Scorecards managers.

Check the new role in New Relic platform

You can validate if the scorecard role is reflecting in the New Relic platform.

To check the role:

  1. Log in to your new relic account.

  2. Click on your name at the bottom left.

  3. Go to Administration > Access Management.

  4. Click the Grants tab: You can see the custom role you created in the list of roles:

    A diagram showing a custom Scorecards Manager role to manage Scorecards