# Use case for the feature of Record ownership across Business Unit

Today, I would like to share an existing configuration on the Power Platform Admin Center. This feature is regarding record ownership impact on the permission of the user.

## Scenario

Firstly, let's see my scenarios as picture here

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FSp67TcwyHbbQfydH9JwE%2FCleanShot%202024-08-29%20at%2009.03.13%402x.png?alt=media&#x26;token=fa631a30-da09-4ba3-bdcf-482ce763590c" alt=""><figcaption><p>Scenario</p></figcaption></figure>

User A is working for 2 BU: **BU1** and **BU2.** However, as my scenario flows, this User was assigned different roles for each BU.

## How to enable & configure it?

Go to the Power Platform Admin Center > select environment > into the **Feature** area, turning on the feature **"Record ownership across Business Unit".**

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FDALLVBSNLK6I2SnPzVf0%2FCleanShot%202024-08-29%20at%2009.12.07%402x.png?alt=media&#x26;token=49011be3-99b6-4356-890a-27aa824b92c0" alt=""><figcaption><p>Enable feature</p></figcaption></figure>

{% hint style="success" %}
Once enabled:

* Allows you to assign security roles from different business units to a user.
* Users can have different roles for each BU assigned.
  {% endhint %}

## Assign Security Roles for the User

To assign security role for a User for different BUs, you go to the Power Platform Admin Center. After that, go to **User + permission** area >> click **User** >> then select specified User (ex: **TEST HS)** and click Manage security role, then select BU and assign roles for the user.

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FaYZXHSWVgUZIt92POTSS%2FCleanShot%202024-08-29%20at%2009.26.10%402x.png?alt=media&#x26;token=5f834e41-2e5b-4d07-8970-8a8c06a577ec" alt=""><figcaption><p>Assign roles for different BUs</p></figcaption></figure>

{% hint style="success" %}
Activating the ***Record ownership across BU*** feature resulted in the **Business Unit** field being enabled, whereas it was previously disabled.
{% endhint %}

Please review the test security roles listed below. Following that, I will present the testing results for this feature. My test role: **Salesperson-X** and **Salesperson-Y**

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2Fa5EflBZPReoWjGS3d3tY%2FCleanShot%202024-08-29%20at%2009.36.09%402x.png?alt=media&#x26;token=dd734d0d-bd59-48cc-bd59-57f04981f6b1" alt=""><figcaption></figcaption></figure>

## Checking permission of the User

First, I logged in by user Admin and checked the data of Account entity as bellow.

* Total account records: 33
* Accounts of BU1: 04
* Accounts of BU2: 5

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2Fe5sYA4AAWUhVoxU80gul%2FCleanShot%202024-08-29%20at%2010.07.02%402x.png?alt=media&#x26;token=9300d582-8975-455d-97d2-f0a2d178be56" alt=""><figcaption><p>Data of Account entity - View by Admin role</p></figcaption></figure>

Now, my expectation when log-in by user **TEST HS:**

* Can see 9 Accounts of Child BU 1 & Child BU 2&#x20;
* Can Edit Account of Child BU 1&#x20;
* Cannot Edit Account of Child BU 2

... and then my testing Result

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FP4kJ1rW7cuqvvmk1DitV%2FCleanShot%202024-08-29%20at%2010.17.05%402x.png?alt=media&#x26;token=96f221b6-2a22-4e04-b2bb-2a56b3828fd3" alt=""><figcaption><p>Total Accounts = 9 record</p></figcaption></figure>

Open the account record of each BU for permission testing&#x20;

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FRaUZ0pMR58P1gXvKnf3a%2FRecord_Cross_BU.gif?alt=media&#x26;token=b274adf6-8eac-475c-b501-cbfa8f990da8" alt=""><figcaption><p>Testing Permission result - of TEST HS user</p></figcaption></figure>

## How to enable the field "Owning Business Unit" on the form for all entities?

I will now reveal a concealed setting that activates the Owning Business Unit field on the form for all entities. Once this field is enabled, users can create an Account record and then assign it to a different Business Unit to which they are assigned.

Before enabling this hidden setting - the field **Owning Business Unit** was set **Read-Only.** So, the user does not assign this record to a different BU.

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2Fsl2hIpWWCaab2VZ0AHDN%2FCleanShot%202024-08-29%20at%2010.46.21%402x.png?alt=media&#x26;token=e5998c34-f895-4d88-97a4-c63507015f5c" alt="" width="563"><figcaption><p>Before - enable hidden feature</p></figcaption></figure>

After that, we will enable the hidden setting of the [**Environment Database Setting**](https://learn.microsoft.com/en-us/power-platform/admin/environment-database-settings)**.** You must install a solution -  **OrgDBSettings tool** at the [**link**](https://github.com/seanmcne/OrgDbOrgSettings/releases)**.**

After installation, navigate to the solution within the configuration area and set the '<mark style="color:green;">**RecomputeOwnershipAcrossBusinessUnits**</mark>' setting to <mark style="color:green;">**'true'.**</mark> This will enable the ***'Owning Business Unit***' field to be modified and the user can assign account records to a different BU.

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FYWjnR1bz5UyOFzbTLQEG%2Fimage.png?alt=media&#x26;token=1fb8983d-4f4b-4716-a8b7-a278c4157880" alt=""><figcaption><p>Set “RecomputeOwnershipAcrossBusinessUnits” = true</p></figcaption></figure>

Let checking.....

<figure><img src="https://4233060750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjhtQupP7ACZVtv3cCNCr%2Fuploads%2FPVZdszuDegyVz0Qj05w4%2FCleanShot%202024-08-29%20at%2011.00.59%402x.png?alt=media&#x26;token=362c11b3-5156-46af-9500-e94dc59fa762" alt=""><figcaption><p>Testing - after enable hidden setting</p></figcaption></figure>

Tadaaaa... :tada: That's all today.

Hoping well and thank you!\
\&#xNAN;**\[NTD]yns.Asia**
