know the current user logged in

M

muzy

Dear All,
I'm developing an appliacation which integrates with the project server
database and i want to know the current user logged in to use it in my
application

Thank You
 
B

Brian K - Project MVP

muzy said:
Dear All,
I'm developing an appliacation which integrates with the project
server database and i want to know the current user logged in to use
it in my application

Thank You

Sadly, if the user is logged in with a Windows Auth account you cannot
make a Project VBA call directly to get the username. But you can still
make an API call to get it. (I dont know the api call but I know it is
there).

Check the contents of the Application.Profiles.ActiveProfile.LoginType
property. If it is "1" then you need to call the API. If it is not one
you can call the application.profiles.actuveprofile.username property
to see the username of the current user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top