Company selection on login page - multiple company

How do i configure company selection from login page.

like below image.

image

Hi Suresh,

The specific way you want this done will mean you need to do customization to enable this.

However there could be easier ways of accomplishing the underlying business need. What is your business need:

  1. Different users will need access to different companies and I want each user restricted to a specific company. This restriction is applicable all the time.
  2. Different users will need access to different companies but I want that each session (login) to be tied down to a specific company. So, user chooses the company at the time of logging in.

If it is #1 there are easier ways of accomplishing it through user permissions.

If it is #2, you will need something like what you described. Try and figure out from the forum how to do it. Or engage a service provider/ freelancer to do it for you.

Hope this helps.

Thanks

Jay

1 Like

#2 is good as for my required.

thanks for you reply.

To add, please see if sessions defaults will work for you -

https://docs.erpnext.com/docs/user/manual/en/setting-up/settings/session-defaults

1 Like

Hi,

I am still on ver 11 and wasn’t familiar with this feature. Great feature. But is there anyway to enforce that for users on every session? Like it’s not exactly user permissions that’s permanent, but more like you could have two companies set up on an instance. You could even set one as the default company, but there are users who need to work with the other (non-default) company most of the times, but yet you don’t want to restrict them to only accessing the other company as sometimes, as backup they may need to transact with the default company. So, in such cases this feature would work great.

But if wishes were horses…

Thanks

Jay

3 Likes

Some users will only work in one company. Admin and also some user should work In both companies when needed.

Use user permissions and lock down such users to a single company.

Don’t set any permissions for them, or allow for all companies that such users can work with.

Hope this helps.

Thanks

Jay

1 Like

@JayRam; Sir, first of all i need to config company list above user login id.

i will try to connect any freelancer who can work on it.

Is there a way to programatically set the session defaults for a particular user when he logs in ?
like each user can be tied to a pos profile where there are multiple defaults set , but ofcourse those are only for pos ,
if we could that on login fetch those values for a user and set the session defaults then those defaults will be set automatically upon login each time for all docs,