Azure-docs: What are the permissions needed to be able to Test Send?

Created on 17 Jun 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

Can you please elaborate on the permissions needed for a user to be able to use the Test Send feature of the portal? We currently have a user that has that option disabled. He currently is a member of the Reader role for that Resource Group

image


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cxp notification-hubsvc product-question triaged

All 5 comments

@jstawski Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks for looking into this @BryanTrach-MSFT! Any updates...?

@BryanTrach-MSFT - Did you guys uncover anything? Thanks for checking into this!

@jstawski @seangriffin2 I apologize for the delay.

Sending a test notification goes beyond simply reading so the reader role will not work. Since sending test notifications has the ability to reach a wide array of customers, you can only use the default RBAC role of contributor. I assume this is too much access for your use case.

The good news is you can create a custom RBAC role to allow the user only the ability to send test notifications. To do this:

  1. Navigate to the portal
  2. Navigate to All Services> Subscriptions> Your subscription> Access Control (IAM)
  3. Select the 'Add' button and then select 'Add custom role'
  4. Give it a name, description, and start from scratch for baseline permissions
  5. Then select the Permissions tab> Add permissions
  6. Search for Notification
  7. Select Microsoft Azure Notification Hub
  8. Under 'Microsoft.NotificationHubs/Namespaces/NotificationHubs' select 'Other : Send a test push notification.' and then select 'Add'
  9. Edit the scope as necessary

Keep in mind the user will still need the reader role to see the resource as well.

I hope this helps you. If not, please tag me in your reply and we can continue the discussion.

Thank you @BryanTrach-MSFT I didn't know we could create custom roles!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

bityob picture bityob  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments