What determines Which Department is Selected on login?

Hi Guys,
just a quick one, I remember I must have asked this somewhere but I cannot find where my old post is.

So can someone tell me on User Login, when department is selected automatically,
Is there a way to default this value?

I was thinking, maybe this is determined by which department was the newest, but I tried to create new ones, and it is still selecting the older one.

Any help would be appreciated.
Thanks!

If you want it to go to specific department for a user you can user user roles to define specific departments

Hi Jesse, Thank for the reply.

Yes I did set the value on the role to be specified to Restaruant Department,
and once I log in with that user,
It is still taking me to the Takeaway Department.

Which puzzles me.

I mean in permissions. You need to remove
Departments from that user role

I figured it out, it was my old setup, I left a rule in there, which will auto-department when logged in :joy::man_facepalming: