# Forbidden error on notification rest api call

**URL:** <https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353>\
**Category:** Jira Cloud\
**Tags:** email, jira-cloud, rest-api, atlassian-connect\
**Created:** [March 17, 2024, 7:23pm UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353 "2024-03-17T19:23:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MargaritaKravtsova](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/margaritakravtsova/32/48413_2.png) [@MargaritaKravtsova](https://community.developer.atlassian.com/u/MargaritaKravtsova)\
**Post date:** [March 17, 2024, 7:23pm UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/1 "2024-03-17T19:23:53Z")

</div>

Hello there!

Our plugin sends email notifications using rest api [endpoint](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-notify-post).  
One of our customers have complained on not receiving emails for several months. After sending POST request from customer’s instance we get 403 response with error message

`Sending emails is disabled to keep sensitive data secure and to meet your organization's compliance needs.`

Outgoing emails are enabled and instance settings weren’t change since customer have received the last email sent by plugin. Could you explain what else may cause that error? Which instance settings should be changed to go on sending and receiving emails?

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [March 18, 2024, 3:01am UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/2 "2024-03-18T03:01:05Z")

</div>

Hello @MargaritaKravtsova

1. Does it happen for all users in all projects, or only some some users in some projects?
2. Does it happen for those users only via the plug-in or also via the GUI?
3. Does it also happen using the built-in workflows to send notifications?
4. Have you confirmed that email notifications have not been turned off at the project level / notification scheme level as per this [Jira Cloud documentation](https://support.atlassian.com/jira-cloud-administration/docs/configure-email-notifications/)?

---

<div class="post-metadata">

**Author:** ![MargaritaKravtsova](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/margaritakravtsova/32/48413_2.png) [@MargaritaKravtsova](https://community.developer.atlassian.com/u/MargaritaKravtsova)\
**Post date:** [March 18, 2024, 8:20am UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/3 "2024-03-18T08:20:20Z")

</div>

> [@anon96974232](#):
>
> 1. Does it happen for those users only via the plug-in or also via the GUI?

Could you, please, clarify, what GUI is? Do you mean, that customer should try to send email from this page?

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/5/6/56acb3947013653876a53c7cafb9deb421c15a57.png)

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [March 18, 2024, 10:00am UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/4 "2024-03-18T10:00:44Z")

</div>

Yes, that is one of the GUI pages that can be used to send emails. Also, if the project has a workflow in place to send an email to someone when a condition is met, such as the status changing, and the user uses the GUI to achieve that condition for an issue, does the email get sent or do they get the error message.

IE, apart from your plugin, what other aspects of Jira have you tested to find the extent of this email restriction?

---

<div class="post-metadata">

**Author:** ![MargaritaKravtsova](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/margaritakravtsova/32/48413_2.png) [@MargaritaKravtsova](https://community.developer.atlassian.com/u/MargaritaKravtsova)\
**Post date:** [March 20, 2024, 8:42pm UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/5 "2024-03-20T20:42:47Z")

</div>

Hello @anon96974232  
I have received responses from the customer. So,

> [@anon96974232](#):
>
> Does it happen for all users in all projects, or only some some users in some projects?

It happens for all users in all projects.

> [@anon96974232](#):
>
> Does it happen for those users only via the plug-in or also via the GUI?

It happen only via the plug-in. I also tried to send POST request from Postman application, but received the same response. If customer sends email from GUI it works properly.

> [@anon96974232](#):
>
> Does it also happen using the built-in workflows to send notifications?

No.

> [@anon96974232](#):
>
> Have you confirmed that email notifications have not been turned off at the project level / notification scheme level as per this [Jira Cloud documentation](https://support.atlassian.com/jira-cloud-administration/docs/configure-email-notifications/)?

Yes.

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [March 20, 2024, 9:30pm UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/6 "2024-03-20T21:30:26Z")

</div>

Hello @MargaritaKravtsova

Thanks for the detailed response. It sounds like the Jira / Org Administrator of that Jira Cloud instance has [disabled outgoing emails](https://confluence.atlassian.com/jirakb/outgoing-mail-in-jira-cloud-1206796735.html).

When this is done, emails sent from the in-built automations will still work, as per [AUTO-112](https://jira.atlassian.com/browse/AUTO-112). It’s most likely the users are able to send emails from the GUI because that uses their personal email addresses as the _From_ source. It’s also possible that the Jira / Org Admin has [set a custom email address](https://support.atlassian.com/organization-administration/docs/what-are-the-steps-for-setting-up-custom-email-addresses/) for those type of outgoing emails that is allowing those to pass through, but not the ones from the REST API, which uses the default built-in email address.

You’re going to need to liaise with the Jira / Org Admin of that Jira Cloud instance and find out if they recently made any of these changes. As a result, you may need to alter your plug-in to use the custom email address that is allowed to pass through, or maybe just the Jira / Org Admin will see it from your point of view and reconsider their change.

---

<div class="post-metadata">

**Author:** ![MargaritaKravtsova](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/margaritakravtsova/32/48413_2.png) [@MargaritaKravtsova](https://community.developer.atlassian.com/u/MargaritaKravtsova)\
**Post date:** [March 25, 2024, 3:30pm UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/7 "2024-03-25T15:30:44Z")

</div>

Hello @anon96974232

We sure, that outgoing emails are enabled.

We also checked, that customer uses the default built-in email address for sending notifications.

Could you suggest what else might be a reason of not receiving emails sent by our plugin?

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [March 25, 2024, 9:39pm UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/8 "2024-03-25T21:39:51Z")

</div>

Sorry, I can’t help any further, as there are too many variables that could possibly be the source of the issue.

You may have to log a support ticket with Atlassian or pay for specialist to come in and help resolve the matter.

---

<div class="post-metadata">

**Author:** ![ibuchanan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ibuchanan/32/35815_2.png) [@ibuchanan](https://community.developer.atlassian.com/u/ibuchanan)\
**Post date:** [March 26, 2024, 1:12am UTC](https://community.developer.atlassian.com/t/forbidden-error-on-notification-rest-api-call/78353/9 "2024-03-26T01:12:20Z")

</div>

+1 to @anon96974232’s suggestion to raise a support request. I’m also thinking there are “too many variables”. And maybe so many that even [our dev support team](https://developer.atlassian.com/support) might be of limited help if only you, as the developer of an app, contact them. If you could get the customer to log [a _customer_ support case](https://support.atlassian.com/contact/#/), that has the best chance of getting to the bottom of the problem. Without customer engagement with support, Atlassian would not look into the customer data, including configuration, which leaves us all a bit blind.
