Skip to content

Commit e0ba264

Browse files
Live publish for 24 February 2024.
2 parents c14e3da + 8d3bd3b commit e0ba264

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

powerapps-docs/developer/data-platform/impersonate-another-user.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ contributors:
1717

1818
Use impersonation to execute business logic on behalf of another Microsoft Dataverse user to provide a desired feature or service using the appropriate role and object-based security of that impersonated user.
1919

20-
This is necessary because the Dataverse web services can be called by various clients and services on behalf of a Dataverse user.
20+
Impersonation can be used by various clients and services to call the Dataverse web services on behalf of a Dataverse user.
2121

2222
Impersonation involves two different user accounts:
2323

@@ -36,15 +36,19 @@ The actual set of privileges that is used to modify data is the intersection of
3636

3737
In other words, the *impersonator* is allowed to do something *if and only if* the *impersonator* and the *impersonated user* have the privilege necessary for the action.
3838

39+
### Direct assignment required
40+
41+
The **Act on Behalf of Another User** privilege (`prvActOnBehalfOfAnotherUser`), or a role containing that privilege, must be assigned directly to users since it can't be inherited through a Team. This direct assignment is needed because of the sensitive nature of the privilege.
42+
3943
## Impersonation with Server-to-Server authentication
4044

41-
If you are creating a web client application that requires a user account that can act on behalf of a subscribing user, you can use the special *application user* account so that you do not need to use a paid Dataverse user license.
45+
If you're creating a web client application that requires a user account that can act on behalf of a subscribing user, you can use the special *application user* account so that you don't need to use a paid Dataverse user license.
4246

4347
More information: [Build web applications using Server-to-Server (S2S) authentication](build-web-applications-server-server-s2s-authentication.md).
4448

4549
## Impersonate another user using the Web API
4650

47-
To impersonate a user, add a request header named `CallerObjectId` with a GUID value equal to the impersonated user's Microsoft Entra ID object id before sending the request to the web service. The user's Microsoft Entra ID object id is included in the [SystemUser.AzureActiveDirectoryObjectId](reference/entities/systemuser.md#BKMK_AzureActiveDirectoryObjectId).
51+
To impersonate a user, add a request header named `CallerObjectId` with a GUID value equal to the impersonated user's Microsoft Entra ID object identifier before sending the request to the web service. The user's Microsoft Entra ID object identifier is included in the [SystemUser.AzureActiveDirectoryObjectId](reference/entities/systemuser.md#BKMK_AzureActiveDirectoryObjectId).
4852

4953
More information: [Impersonate another user using the Web API](webapi/impersonate-another-user-web-api.md).
5054

@@ -59,7 +63,7 @@ To impersonate another user, set the `CallerId` property to the Guid value of th
5963

6064
## Impersonate another user using plug-ins
6165

62-
You can register a plug-in you can specify a user that the operations should use. Within the code of a plug-in you can override this setting.
66+
You can register a plug-in containing code to specify the user that the operations should use.
6367
More information: [Impersonate a user](impersonate-a-user.md).
6468

6569

powerapps-docs/mobile/canvas-mobile-offline-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If users of your Dataverse-based canvas app have spotty or no Internet access, y
2626

2727
> [!IMPORTANT]
2828
> - The offline-first feature works with Dataverse tables only and doesn't support the following Power Fx functions:
29-
> - Sum/Min/Max/Avg
29+
> - Min/Max/Avg
3030
> - Relate
3131
> - Unrelate
3232
> - In (Membership)

powerapps-docs/mobile/canvas-mobile-offline-setup.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ Switch(Connection.Sync,
199199
200200
   ConnectionSync.NotConnectedSyncError, Icon.GlobeError)
201201
```
202+
You can set the **OnSelect** property using the Power Fx function `ShowHostInfo` to show the [Device status page](/power-apps/mobile/offline-sync-icon#device-status-page) when selecting the globe icon.
203+
204+
```powerappsfl
205+
ShowHostInfo(HostInfo.OfflineSync)
206+
```
207+
You can set the **Visible** property using the Power Fx function `Host` to only show the globe icon when the app is used on a player that is supporting the offline mode.
208+
209+
```powerappsfl
210+
Host.OfflineEnabled
211+
```
202212

203213
## Limitations and known issues
204214

0 commit comments

Comments
 (0)