---
schema_version: "1"
id: 208870027a20f1623d5cfd1ea30401bab9b7f3ec809ddd70695389d6598c58f8
title: UserDailyMetricOwnerSharingRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userdailymetricownersharingrule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userdailymetricownersharingrule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 46d854e1670cceb3dc4652a72c1c7890b07cf2b09e4c696387ee6b153ff33e76
description: Represents the rules for sharing the user daily metric with users other than the owner.
---
# UserDailyMetricOwnerSharingRule

Represents the rules for sharing the user daily metric with users other than the owner.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

To enable access to this object for your org, contact Salesforce customer support. However, we recommend that you instead use Metadata API to programmatically update owner sharing rules because it triggers automatic sharing rule recalculation. The [SharingRules](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_sharingrules.htm) Metadata API type is enabled for all orgs.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

## Special Access Rules

Sales Engagement must be enabled.

## Fields

| Field | Details |
| --- | --- |
| AccessLevel | 
Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

Determines the level of access users have to records. Values are:

- Read (read only)
- Edit (read/write)





 |
| Description | 

Type

textarea

Properties

Create, Filter, Nillable, Sort, Update

Description

Description of the sharing rule. Maximum length is 1000 characters.



 |
| DeveloperName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The unique name of the object in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object's name in a managed package and the changes are reflected in a subscriber's organization.

When creating large sets of data, always specify a unique DeveloperName for each record. If no DeveloperName is specified, performance slows down while Salesforce generates one for each record.





 |
| GroupId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the source group. Records that are owned by users in the source group trigger the rule to give access.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Label of the sharing rule as it appears in the UI. Maximum length is 80 characters.



 |
| UserOrGroupId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the user or group that you are granting access to.



 |

## Usage

Use this object to manage the sharing rules for cases. General sharing and territory management-related sharing use this object.

#### See Also

- [UserDailyMetric](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userdailymetric.htm "Represents the daily engagement metrics for a user. This object is available in API version 52.0 and later.")
- [_Metadata API Developer Guide_: SharingRules](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_sharingrules.htm "
    Metadata API Developer Guide: SharingRules - HTML (New Window)")