# Allow Active Directory users to login in Flow Studio

**URL:** <https://forum.novacura.com/t/allow-active-directory-users-to-login-in-flow-studio/523>\
**Category:** Flow Classic\
**Created:** [October 21, 2023, 5:24pm UTC](https://forum.novacura.com/t/allow-active-directory-users-to-login-in-flow-studio/523 "2023-10-21T17:24:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose.Mario.Pites](https://avatars.discourse-cdn.com/v4/letter/j/7C9FD7/32.png) [@Jose.Mario.Pites](https://forum.novacura.com/u/Jose.Mario.Pites)\
**Post date:** [October 21, 2023, 5:24pm UTC](https://forum.novacura.com/t/allow-active-directory-users-to-login-in-flow-studio/523/1 "2023-10-21T17:24:30Z")

</div>

Hello.

I noticed that the users that are synchronized with Active Directory have no problems logging in Portal 2 but not in Flow Studio.

The other day, @OlaCarlander explained that we must put a script somewhere with the following contents, but I forgot to write down where that script is configured and now I don’t find where to do it.

> exec SetUserLevel(‘AdministerWorkflows’); exec SetLanguage(‘sv’); exec SetCulture(‘sv-SE’)

Thank you.  
Regards.

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/daniel/32/708_2.png) [@daniel](https://forum.novacura.com/u/daniel)\
**Post date:** [October 21, 2023, 6:48pm UTC](https://forum.novacura.com/t/allow-active-directory-users-to-login-in-flow-studio/523/2 "2023-10-21T18:48:55Z")

</div>

In the Active Directory sync view, where you add the AD Groups to Novacura Roles, there will be a {} on the right. If you click that, you can paste in that script.

---

<div class="post-metadata">

**Author:** ![Jose.Mario.Pites](https://avatars.discourse-cdn.com/v4/letter/j/7C9FD7/32.png) [@Jose.Mario.Pites](https://forum.novacura.com/u/Jose.Mario.Pites)\
**Post date:** [October 21, 2023, 7:05pm UTC](https://forum.novacura.com/t/allow-active-directory-users-to-login-in-flow-studio/523/3 "2023-10-21T19:05:12Z")

</div>

Thank you Daniel. It is pretty obvious… 🕶, after all. I guess I didn’t see that icon because to make the right part of the panel visible I had to scroll horizontally.  
Regards.  
JMP
