Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Creating new-relic accounts using an API

users
api
accounts
roles

#1

Is there any API using which an Admin/Owner can create a new-relic account for new user.
Also, is there an API for modifying existing details(such as email) for particular users.

The below is the manual way of adding/updating the users.
https://docs.newrelic.com/docs/accounts/accounts/roles-permissions/add-update-users


#2

Hi @Bikash.Singh

Currently there is no API for regular accounts to create new accounts or new users. If your organisation has a partnership agreement with New Relic you may have access to our Partnership API which will allow you to create accounts or users.

Alternatively, you can use the bulk user actions page to edit and upload a CSV of user details:

https://docs.newrelic.com/docs/accounts/accounts/roles-permissions/bulk-user-actions-add-delete-or-update-batches-users

or if you are using Single Sign On, you may take some benefit from AUM: https://docs.newrelic.com/docs/accounts/accounts/automated-user-management/automated-user-provisioning-single-sign


API to find users who have last active status as "Pending invite"
#3

Hi @RyanVeitch

In case the organisation has a partnership agreement with New Relic, would we able to create users without updating/deleting any previous data already existing in it. (Because the bulk_user option using CSV does that I suppose).

Could you please confirm on the same.

https://docs.newrelic.com/docs/new-relic-partnerships/partnerships/partner-api/partnership-api-user-object

curl -X POST
-H ‘x-api-key:PARTNER_ACCOUNT_KEY’
-H ‘Content-Type:application/json’
-d ‘{“users”:[{“email”: "foobar@newrelic.com", “password”:“password1”, “first_name”:“John”, “last_name”:“Doe”, “role”:“admin” }]}’
https://rpm.newrelic.com/api/v2/partners/:PARTNER_ID/accounts/12345/users


#4

Per the Partner API User Object docs, you would be able to update the roles and permissions of a user, but you would not be able to update other details such as email address/timezone preferences/etc…

https://docs.newrelic.com/docs/new-relic-partnerships/partnerships/partner-api/partnership-api-user-object#example-update