EPDM Single Login Per User...

Hey guys,

I'm trying to figure out if it's possible to restrict EPDM users to a single login.  Basically, can it be set up so that they can only be logged in on one machine at a time?  They can't walk over to another computer and log in as them and be taking out two licenses for a single person.

SolidworksSolidworks Pdm enterprise Pdm
Answers 11
SF
SF 2011-03-03 Best Answer

Not that I have seen.  I understand your logic, but I have also found it handy to be able to log into more than one machine at a time and do it probably a few times per week.

WT

SF
SF 2011-03-04

In our case, we're going to have every drafter using two computers.  If they each take a license on each machine, that would double our licenses needed.  What would be ideal would be that if they tried to log in on one machine it would prompt them if they were already logged in on the other and give them the option to log off the other machine.  But I doubt that's a possibility.

WM
WM 2011-03-04

The best you can do is run a report on logged in users and give the guys a call when you see they are logged in more than once. I have a attached a report you can run in Report Generator that will list logged in users.

SF
SF 2011-03-04

That's definitely a step closer.  Thanks for that!

I wonder if it would be possible with an add-in to run that report and test to see if someone is logged in and at least just pop up a message box telling them "Hey, you're logged in twice... log off one of them"

SK
SK 2011-03-04

The api should open the door to the possibility, but don't forget about the default card that you can use in search.

IEdmUserMgr5::GetNextLoggedInUser

C:\Program Files\SolidWorks Enterprise PDM\Default Cards\all(Search Users)_gb.crd

comment imagecomment image
JC
JC 2011-03-04

Why two computers? Just curious.

CV
CV 2011-03-07

I just took at the API to see if there was an easy to write an add-in to do this and unless I'm missing something(not unlikely) then I don't think this is an easy problem to fix.

I assumed you could just add a hook to a pre-login event, but looking at EdmCmdType I don't see a pre-login event that you could fire and check against the user name.

You could work around this by putting a hook on EdmCmd_PreGet(or something similar) and stopping the user from getting anything from the Vault, this would make being logged in on two systems largely useless but still not give you the control your after.

Anyone have any thoughts? Is this worth an enhancement request? I personally can't think of a reason I would use it.

Regards,

Corey V

SF
SF 2011-03-08

Searching logged in users only works if the user can log in though.  If all of the licenses are tied up because several people are logged in twice, the users that need to get in have no way of seeing who's in there to twice to be able to ask them to get out.  I guess they could always ask someone else to run it that is logged in and get around through it that way... so it would be useful.

SF
SF 2011-03-08

Maybe I could do a test after they log in and see that they're already logged in once and then post an error message up for them then telling them that they're logged in once already.  I wouldn't necessarily be stopping them from logging in, but I would at least be alerting them that they're in there twice in case they weren't paying attention.

LY
LY 2011-03-08

The GetAddInInfo() method of your add-in will be called upon each login which will allow you to do your checking and you'll be able to display a message letting the user know they are logged in more than once.

Keep in mind, however, that calling other EPDM API methods in the GetAddInInfo() method fails in EPDM 2010. It seems to be fixed in EPDM 2011.

If you really wanted to get fancy you could write a scheduled task that would let users know they're logged in more than once too.

The API does not have a method to prevent a login or to log out a user. (It might be able to be done with SQL but I wouldn't go there.)

SF
SF 2011-03-08

That sounds like that will do exactly what I'm needing.  We're using 2011, so that call shouldn't be a problem.

Thanks everyone for your help!!