--- title: "Restrict access based on user profile information" slug: "restrict-access-based-on-user-profile-information" updated: 2026-08-13T16:01:25Z published: 2026-08-13T16:01:25Z canonical: "totara.help/restrict-access-based-on-user-profile-information" --- > ## Documentation Index > Fetch the complete documentation index at: https://totara.help/llms.txt > Use this file to discover all available pages before exploring further. # Restrict access based on user profile information The **User profile** completion condition can restrict access to the activity based on fields within the learner’s profile. 1. Navigate to the course and select **Turn editing on**. 2. Click **Edit** next to the activity for which you want to restrict access. 3. Expand the **Restrict access** section and click **Add restriction**. 4. Select **User profile**. 5. You can select whether the learner **must** or **must not** match the specified completion criteria. 6. Select the relevant [**User profile field**](/totara-20/docs/user-profile) from the **Choose...** dropdown menu. 7. Next select the relevant criteria (e.g. **is equal to** or **doesn't contain**) and enter the information you want to exclude/include in the text field. For example, you could restrict audience to any users with a specific email domain by selecting **Email address doesn't contain** 8. Select **Add restriction...** to add another condition. 9. Then select **Save and display** or **Save and return to course** to confirm your selection. You can also click the **X** delete icon to cancel without saving. ![Restricting access based on a user profile field.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-1634289845331.png?sv=2026-02-06&spr=https&st=2026-10-29T19%3A25%3A52Z&se=2026-10-29T20%3A25%3A52Z&sr=c&sp=r&sig=8eucKXQk0vX9amqLI4kR52T1fbLG3Xt%2BGDnQVirr8sg%3D) Join the [Totara Community](https://totara.community/) for more resources to help you get the most out of Totara. © Copyright 2025 Totara Learning Solutions. All rights reserved. Some content originally obtained via [GPLv3 license](https://www.gnu.org/licenses/licenses.html#GPL) and continues to be available under GPLv3. All other content is the sole copyright of Totara Learning Solutions.