# SharedLinkRecipient

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SharedLinkRecipient/

Struct for visitor shared link recipient.

- **Full name:** `MFiles.SharedLinkRecipient`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-email"></a>`email` | `string` | 1 | The recipient email. |
| <a id="f-access_time"></a>`access_time` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | 2 | The access time for the shared link. Is set by the server. |
| <a id="f-created_by_user"></a>`created_by_user` | `int32` | 3 | The creator of this shared Link. |
| <a id="f-shared_link_notification"></a>`shared_link_notification` | [`SharedLinkNotification`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.SharedLinkNotification/index.md) | 4 | Shared link notification type. Values: `SHARED_LINK_NOTIFICATION_NONE` (0), `SHARED_LINK_NOTIFICATION_ALWAYS` (1). |
| <a id="f-expires_at_utc"></a>`expires_at_utc` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | 5 | The expiration time for the shared link. Use FILETIME_ZERO to indicate no expiration time. |
| <a id="f-external_shared_link_access_type"></a>`external_shared_link_access_type` | [`ExternalSharedLinkAccessType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ExternalSharedLinkAccessType/index.md) | 6 | The access type of the recipient. Values: `EXTERNAL_SHARED_LINK_ACCESS_TYPE_UNINITIALIZED` (0), `EXTERNAL_SHARED_LINK_ACCESS_TYPE_DOWNLOAD` (1), `EXTERNAL_SHARED_LINK_ACCESS_TYPE_PREVIEW` (2), `EXTERNAL_SHARED_LINK_ACCESS_TYPE_EDIT` (3). |
| <a id="f-created_by_user_name"></a>`created_by_user_name` | `string` | 7 | The user who created the shared link. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCSharedLinks.AddSharedLinkRecipients](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/AddSharedLinkRecipients/index.md): Adds visitors (email recipients) to an external or visitor link and returns all its recipients.
- [IRPCSharedLinks.GetSharedLinkRecipients](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/GetSharedLinkRecipients/index.md): Lists the visitors (email recipients) of an external or visitor link.

<a id="used-in-fields"></a>

## Used in fields

- [`SetSharedLinkRecipient.recipient`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SetSharedLinkRecipient/index.md#f-recipient): The information about the shared link recipient linked to the access key to update expiration time and access type.
- [`AddSharedLinkRecipientsResponse.recipients`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/AddSharedLinkRecipients/index.md#response): All recipients of the link that the caller can see.
- [`GetSharedLinkRecipientsResponse.recipients`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/GetSharedLinkRecipients/index.md#response): The recipients, with their expiration time and access type.
