How to check Active user sessions before robot picksup any machines

I have sql query which return active users on PROD servers if any .
Now , What approach I can take to check before any process picks up the particular machine.

We have 2 PROD and 1 test server but developers usually logs in with their credentials or through actual bot credentials . Which is kicking of the jobs or any user working on it. I know this is not a good practice but for current situation please provide guidance.

SQL Query is returning the users active on which machines.
image

There is no way in UiPath to do this type of check.

You can do one thing but not from UiPath side but from infra side, that is you can enable multiple sessions on the server, also have your robot account admin permissions on the VM to avoid any failures due to application being used by another user(developer), but you also need to ensure some things in your code such as killing applications before trying to open like excel/desktop applications installed for all users etc.

This is not a standard way, but only workaround I could think of for your scenario.

Is here anything that I can do while assigning robot or permissions ?
We have 10 prod robots and we have developer robots with same permission as prod robots. Still if we connect with that robot acct … we kicked of so, somehow it is not being able to see if any server or robot license is consumed .. how to check that ?

@PATEL_PALKUMARI

So you have some robot accounts, out of which some are Developer and some are production, so you want that you scheduled bots should use only production accounts, is this correct understanding?

If yes, there are ways listed below:

  1. Segregation by tenants- have separate tenants for developers and production
  2. Segregation by folders - have seperate folders for developers and production, assign access to separate folders for developers and production robots & machines, no overlap
  3. It should be opted only if you want to use specific machine and use for specific process . Edit each process and assign use and machine which you want for execution
  4. This option I have not used, so you can do some research or test and try: to Developer robot try to assign attended license/named user if unattended license is not needed. And, edit processes and choose runtime type as unattended production and save