Using the PSI to identify the list of projects

B

boggyboy

Is it possible to identify who is logged in and return return a list of the
projects which they are authorized. I need some kind of security for custom
web parts.

Thanks in advance!
 
B

boggyboy

Thanks Stephen, I'll give that a try.

Stephen Sanderlin said:
You need to impersonate the logged-in user and call ReadProjectStatus().
You can retrieve information on the logged-in user by using the
SharePoint object model.

--
Stephen Sanderlin
Principal Consultant
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read my blog at: http://www.projectserverhelp.com
Join the community at: http://forums.epmfaq.com
 
B

boggyboy

Stephen,

I understand what you mean for determining the logged in user. I don't
think the ReadProjectStatus method is what I want since it returns the status
of a single project. I'm looking for a list of projects which the logged in
user has access. Any ideas on how to approach that?
 
S

Stephen Sanderlin

B

boggyboy

Stephen, Indeed that method does return the dataset that I want! thanks!

I'm having some trouble understanding how to impersonate a user and then
calling the ReadProjectStatus method. I'm looking at the sample apps in the
SDK at the moment but having some trouble understanding what is going on.
Are you aware of any simple examples that impersonate a user and then call a
PSI method??

Again.. you have been a tremendous help! thanks.
 
S

Stephen Sanderlin

You can take a look at
http://blogs.msdn.com/brismith/arch...ct-server-2007-server-side-event-handler.aspx,
but I think that the simplest one is "Write a Simple Impersonation
Application" example located here:
http://msdn.microsoft.com/en-us/library/aa974413.aspx.

--
Stephen Sanderlin
Principal Consultant
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read my blog at: http://www.projectserverhelp.com
Join the community at: http://forums.epmfaq.com
 

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