Skip to content

Commit

Permalink
(custom-flows/user-impersonation) mention needing to create the custo…
Browse files Browse the repository at this point in the history
…m perm (#2020)
  • Loading branch information
alexisintech authored Feb 12, 2025
1 parent 83745d6 commit f28fe53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/custom-flows/user-impersonation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This guide will walk you through how to build a custom flow that handles user im

<Tabs items={["Next.js", "Expo"]}>
<Tab>
The following example builds a dashboard that is only accessible to users with the `admin:impersonate` [permission](/docs/organizations/roles-permissions#custom-permissions). You can modify the [authorization checks](/docs/organizations/verify-user-permissions) to fit your use case.
The following example builds a dashboard that is only accessible to users with the `org:admin:impersonate` permission. To use this example, you must first [create the custom `org:admin:impersonate` permission](/docs/organizations/roles-permissions#custom-permissions). Or you can modify the [authorization checks](/docs/organizations/verify-user-permissions) to fit your use case.

In the dashboard, the user will see a list of the application's users. When the user chooses to impersonate a user, they will be signed in as that user and redirected to the homepage.

Expand Down

0 comments on commit f28fe53

Please sign in to comment.