May 19, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Get actual logged in userGet actual logged in user
Previous Previous
 
Next Next
New Post
 6/12/2009 12:25 PM
 

Is it possible to get the current logged in Windwos user?

I know i can get User Info via USerInfo list on a sharepoint site, but i want to use the actual logged in system user as default value for a report parameter! Maybe a SQLite command similar to SELECT SYSTEM_USER for SQL Server.

New Post
 6/12/2009 2:28 PM
 

Hi emu,

You can get the current user in Reporting Services, using User.UserID :

You would have this output:

 

Let me know if you need more details,

Regards,
Marien MONNIER
Enesys

New Post
 6/12/2009 4:49 PM
 

@Marien MONNIER

Thanks that is what I was searching for. Is there also a buildtin function to get Last Name or Displayname? I mean i can work around using a join on the SharePoint user list to get what i want.

New Post
 6/12/2009 4:58 PM
 

Hi emu,

There is only the UserID available in the built-in functions. You can work around retrieving data from your user using the UserInfo list :

<root>
<list title="UserInfo" relativeSiteUrl="/sites/ersdedemo/" tableName="UserInfo">
<fields>*</fields>
<query>
  <Where>
    <Eq>
      <FieldRef Name="Name" />
      <Value Type="Text">@User!</Value>
    </Eq>
  </Where>
</query>
</list>
</root>

Regards,
Marien MONNIER
Enesys

Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Get actual logged in userGet actual logged in user

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement