# Viewing notifications

This document shows how to configure users for Advisory Notifications
and view notifications by using the Google Cloud console.

## Before you begin

### Ensure that you have the required roles

To view Advisory Notifications in the Google Cloud console, each user must be
granted a role that contains the following Identity and Access Management (IAM)
permissions. These permissions are included in the **Advisory Notifications
Viewer** (`roles/advisorynotifications.viewer`) IAM role.

- `advisorynotifications.notifications.get`
- `advisorynotifications.notifications.list`
- `resourcemanager.organizations.get`, if you need to view notifications for your organization
- `resourcemanager.projects.get`, if you need to view notifications for your project

#### Required roles for organizations

If you have an organization resource, you receive notifications through your organization.

1. Make sure that you have the following role or roles on the organization: Advisory Notifications Viewer

#### Check for the roles

1.
   In the Google Cloud console, go to the **IAM** page.

   [Go to IAM](https://console.cloud.google.com/projectselector/iam-admin/iam?supportedpurview=organizationId)
2. Select the organization.
3.
   In the **Principal** column, find all rows that identify you or a group that
   you're included in. To learn which groups you're included in, contact your
   administrator.

4. For all rows that specify or include you, check the **Role** column to see whether the list of roles includes the required roles.

#### Grant the roles

1.
   In the Google Cloud console, go to the **IAM** page.

   [Go to IAM](https://console.cloud.google.com/projectselector/iam-admin/iam?supportedpurview=organizationId)
2. Select the organization.
3. Click **Grant access**.
4.
   In the **New principals** field, enter your user identifier.

   This is typically the email address for a Google Account.

5. Click **Select a role**, then search for the role.
6. To grant additional roles, click **Add
   another role** and add each additional role.
7. Click **Save**.

<br />

#### Required roles for projects without an organization

If you don't have an organization resource, you receive notifications through your project.

1. Make sure that you have the following role or roles on the project: Advisory Notifications Viewer

#### Check for the roles

1.
   In the Google Cloud console, go to the **IAM** page.

   [Go to IAM](https://console.cloud.google.com/projectselector/iam-admin/iam?supportedpurview=project)
2. Select the project.
3.
   In the **Principal** column, find all rows that identify you or a group that
   you're included in. To learn which groups you're included in, contact your
   administrator.

4. For all rows that specify or include you, check the **Role** column to see whether the list of roles includes the required roles.

#### Grant the roles

1.
   In the Google Cloud console, go to the **IAM** page.

   [Go to IAM](https://console.cloud.google.com/projectselector/iam-admin/iam?supportedpurview=project)
2. Select the project.
3. Click **Grant access**.
4.
   In the **New principals** field, enter your user identifier.

   This is typically the email address for a Google Account.

5. Click **Select a role**, then search for the role.
6. To grant additional roles, click **Add
   another role** and add each additional role.
7. Click **Save**.

<br />

### Permission assistance in the Google Cloud console

> [!IMPORTANT]
> **Important:** This feature is only available if you are using Google Cloud with an organization.

It's possible for a user to receive notification emails from
Advisory Notifications but also be unable to view them in the
Google Cloud console. If you observe this, it can be because users don't have
sufficient permissions as described in the [previous section](https://docs.cloud.google.com/advisory-notifications/docs/quickstart.md.txt#required-roles).

To help users receive access, Advisory Notifications provides
recipients of each notification email a two-week voucher to request permissions
from a highly privileged grantor by using the following instructions:

1. Click **View notification details** in the Advisory Notifications email you received.
2. Optional: If you don't have the required permissions to view the notification, click **Request access** to gain those permissions. Clicking this button automatically contacts one of your highly-privileged organization administrators and informs them that they need to grant you the required permissions.
3. After the administrator has granted you the required permissions, you can view the current and future notifications. You receive an email when the administrator grants you the required permissions.

## Viewing Notifications

After Advisory Notifications has been enabled and all selected
users have been granted permissions to receive
notifications, authorized users can view the notifications in the
Google Cloud console.

1. In the Google Cloud console, select **Security** from the left navigation
   menu, and then select **Advisory Notifications**. Alternatively, click the
   following link:

   [Go to Advisory Notifications](https://console.cloud.google.com/security/advisorynotifications/)
2. From the list of notifications, click the notification title to see more
   information. Note that unread notifications appear in bold.

3. From the **Notification details** page, you can see the title, date and time,
   description, and possibly one or more file attachments associated with the
   notification. Note that you can't delete a notification or change its status
   from read to unread.

Based on your language preference in Google Cloud, you can receive an
email in hours or days after the initial notification email. This email
notifies you about the localization of your notifications.

## Clean up

No additional steps are required to avoid incurring charges to your account.

## What's next

- Learn how to [respond to Sensitive Actions notifications](https://docs.cloud.google.com/advisory-notifications/docs/respond-to-sensitive-actions.md.txt).
- Learn about [audit logging](https://docs.cloud.google.com/advisory-notifications/docs/audit-logging.md.txt).