Viewing another users' tasks

I am currently working on setting up the Project Site templates and utilizing the Tasks feature to assign tasks to users. I would like to be able to see another user's task list on their My Site page. Is this possible? Or to roll up all of a users' tasks
in a web part view or something?
Thanks for your help,
James

Hi  ,
The task list of MySite  site is a hidden list ‘WmaAggregatorList_User‘ where the user profile tasks are stored.
You can Retrieve user's tasks from mysites using server object model. Here is the code you can refer to:
using (SPSite site = new SPSite("http://hostname:8080/personal/" + loginName + "/"))
using (SPWeb web = site.OpenWeb())
SPList list = web.Lists["WmaAggregatorList_User"];
foreach (SPListItem listItem in list.Items)
if (listItem["TypeIdField"] as int? == 0)
try
if (listItem["TxIsCompleted"] as bool? != true)
IncompleteTasksCounter++;
catch (Exception ex)
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(
"Rafals Error",
TraceSeverity.Unexpected,
EventSeverity.Error),
TraceSeverity.Unexpected, ex.Message);
Reference:
http://sharepoint.stackexchange.com/questions/80745/retrieve-users-tasks-from-mysites-using-server-object-model
http://blog.amtopm.be/2013/02/22/getting-personal-tasks-from-the-user-profile/
Best Regards,
Eric
Eric Tao
TechNet Community Support

Similar Messages

  • Copy Session function in 4.6C (To view another users session).

    Hi All,
    I recall in version 4.0 of R3 an option called copy session which allowed you to view another users session.  This option seems to have been taken away in newer version.
    Does anyone know of another way of interactively looking at another users session,
    Kind regards,
    James Mandikos.

    Hi James,
    Sometime back I have invested a lot of time and effort trying to do exactly what you're now up to !!
    Unfortunately, I have not been able to do it. I have done a lot of debugging and tried to do that in some way or the other, but in vain. The reason, if I remember correctly, is that the code responsible for that action is not even there in the higher releases. That is presumably for reasons of security.
    Regards,
    Anand Mandalika.

  • How to get flagged messages in to tasks or alternatively view another users to do list.

    If someone could just help me out I would be extremely appreciative.
    2 of us work in one mail box together called admin. when one of us is away we like to use the flags to create follow ups for each other on certain email items.
    Firstly, I can only see my main accounts to do list
    Secondly, when I flag a contact / message / anything in fact, in any mailbox it only appears in their respective to do lists and not in their tasks. Thus I cannot see what I have flagged for them at a glance as I can not find a way to view other peoples
    to do list. i.e. neither of us can see any of the flags in the shared mailbox we use (admin) unless we log in under a different profile, which is troublesome as it takes way to long to switch back and forth.
    I presently use colour categories to delegate who is currently in charge of answering certain emails and use custom flags to note what we are waiting for in particular to a certain email and then mark a tick when it has been dealt with. Simple system but
    not currently working in full due to the follow up flags not appearing in tasks.
    This also affects my task synching on my mobile where once again it only shows what is in tasks... i.e stuff I have physically typed in outlook rather than flagged content; mails, contacts etc.
    Any ideas how to get the follow up flags appearing in tasks or an ability to see other peoples to do lists... the first is more preferable but I will take what I can.
    Kindest Regards
    Woody

    Just add the 'admin' mailbox as additional account in Outlook, as opposed to additional mailbox (i.e. don't add it from Accounts Settings -> More settings -> Advanced, but from File -> Add account instead).
    It will then show flagged items and tasks from all accounts in the 'To-do' list.

  • How can I view another users calendar

    I need to setup an assistant to view a calendar from another employee.  He can already do this on a computer but we have them both mobile now and would like to do this from their blackberry's.  We utilize Exchange 2003 for mail.  Has anyone attempted this?   
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    While I can't (yet!) find a specific KB article, my recollection is that each BB user can only see and manage their own calendar from the BB. Therefore, the delegate cannot manage the others calendar from their own BB.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Viewing another users profile show my profile

    On the "My threads" page (accessed from the "Quick access" link) clicking on a name after either "Created by" or after "Last reply  by" shows my profile and not expected profile, it does not show the wanted
    profile.
    Clicking the names in the same place in the main pages for forums works OK. I think the issue is in the "referrer" part of the URL. Clicking on a link in the "My threads" page generates the link (the actual user's name alter as the actual
    person is not relevant):
    http://social.msdn.microsoft.com/profile/TheWantedUser/?type=forum&referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/user/threads?user=AdrianHHH
    Clicking on a link in this forum generates a link such as:
    http://social.msdn.microsoft.com/profile/TheWantedUser/?type=forum&referrer=http://social.msdn.microsoft.com/Forums/en-US/home?forum=suggest
    Regards
    Adrian

    Yes, I see this also. I seem to remember this being reported before, but I cannot find it.
    Actually, even weirder, if you mouse over the TheWantedUser link in My Threads, the link in the status bar is as you say:
    http://social.msdn.microsoft.com/profile/TheWantedUser/?type=forum&referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/user/threads?user=AdrianHHH
    This is also what you get if you use your browser to copy the link/shortcut (which I assume is what you did).
    But if you actually click this link the the displayed page is
    http://social.msdn.microsoft.com/profile/AdrianHHH?type=forum&referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/user/threads?user=AdrianHHH
    This happens even if you click the first link in your post, or if you copy and paste this link into your browser. There must be some redirect going on here.
    But this is just details. The fact is that the URL is wrong on the My Threads page.
    David Wilkinson | Visual C++ MVP

  • Investigating another user cache file. How do I bring it up, versus my own being brought up?

    I need to view another users cache content in 'about:cache' or another listing method. How do I accomplish this?

    Try:
    *http://www.nirsoft.net/utils/mozilla_cache_viewer.html

  • Permission to end process of another user in task manager

    Hi there,
    I have Software Restriction Policy enabled, UAC is on computers and current user is not a local admin.
    Is there a way to grant a user security right to terminate process started by another user? Using GPO.
    Currently when user tries to terminate a task using cmd command: taskkill /F /IM "process", gets "Access Denied" if that process has been started by another user.
    I tried Computer Configuration->Policies->Windows Settings->Security Settings->File System, gave domain users full access to the file that is being launched by another user but that did not do anything.
    Thanks

    I am not a VB expert but this code may give a view:
    Const strComputer = "."
    Set WshShell = CreateObject("WScript.Shell")
    Dim objWMIService, colProcessList
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Process.exe'")
    For Each objProcess in colProcessList
    WshShell.Exec "PSKill " & objProcess.ProcessId
    Next
    Taking a look at following links might be helpful:
    VBScript Kill Process
    How to terminate process using VBScript
    Have a visit on the first example of page 133 in this book. For specific user you must handle it with
    GetOwner attribute.
    End
    process for specific user
    Regards.
    Mahdi Tehrani Loves Powershell
    Please kindly click on Propose As Answer or to mark this post as
    and helpfull to other poeple.

  • Creating a materialized view for another user

    I don't seem to find the correct setup for this....
    With the user "dummy"
    CREATE MATERIALIZED VIEW dummy.thetable BUILD IMMEDIATE REFRESH FORCE ON DEMAND AS select * from real.thetable;
    And the materialized view is created ok.
    With a DBA user:
    CREATE MATERIALIZED VIEW dummy.thetable BUILD IMMEDIATE REFRESH FORCE ON DEMAND AS select * from real.thetable;
    ORA-01031: insufficient privileges
    I don't want to be switching back and forth from the user to create materialized views, am I missing a permission here? DBA of course has create any materialized view

    From the SQL Reference Guide:
    To create a materialized view in another user’s schema:
    - You must have the CREATE ANY MATERIALIZED VIEW system privilege.
    - The owner of the materialized view must have the CREATE TABLE system privilege. The owner must also have access to any master tables of the materialized view that the schema owner does not own (for example, if the master tables are on a remote database), and to any materialized view logs defined on those master tables, either through a SELECT object privilege on each of the tables or through the SELECT ANY TABLE system privilege.
    I suspect that, if you first GRANT CREATE TABLE TO DUMMY, you will be able to create the MV.

  • Privilege to allow a user to create a view in another user's schema

    Hello,
    I need to allow a user to create a view in another user's schema.
    Say, to connect as USER_A and run statement: 'create view USER_B_SCHEMA.myview as select...'
    Is there any way to accomplish that without granting USER_A privilege to CREATE ANY VIEW? I want to keep USER_A at the lowest profile possible.
    Thanks!

    You have the option to create an stored procedure, here a test case (no optimized, no bug free):
    SYS@orcl > create user sp_owner identified by sp_owner;
    SYS@orcl > grant create any view to sp_owner;
    SYS@orcl> create procedure sp_owner.create_view (
      2  view_name varchar2, view_sql varchar2 ) is
      3  begin
      4    execute immediate 'create view '||view_name||' as '||view_sql;
      5  end;
      6  /
    Procedure created.
    SYS@orcl > create user test identified by test;
    SYS@orcl > grant create session to test;
    SYS@orcl > grant execute on sp_owner.create_view to test;
    TEST@orcl> execute sp_owner.create_view('scott.emp_vw','select * from scott.emp')
    PL/SQL procedure successfully completed.HTH
    Enrique
    PS. If your problem was solved, consider marking the question as answered.

  • Form based on a view -  FRM-40654: Record has been updated by another user.

    Hi All,
    I am hoping that somebody can help me with this problem that is occurring only when I try an update a record in forms.
    I have a block based on a join-view, I can insert no problems, but I can only update certain records within the block. If I come across a second record that is similar to the first except for primary key and a couple of other values and try and update that record forms gives me the following message FRM-40654: Record has been updated by another user. Re-query to see change.
    The first record I have no problems in updating and I have followed a number of suggestions to get this to work, like setting the key-mode of the block to updateable/non-updateable and setting the primary key to 'yes' for some of the database items. I have also created procedures within the database that are called by triggers on-insert, on-update etc.
    If anybody has any ideas how I can solve this I would be happy to hear your suggestions.
    Thanks in Advance.
    Regards,
    Scott.

    Scott,
    beside of
    1) In the block properties change the Key Mode property of the block to be Non-Updatable Primary Key
    2) Mark one or more columns as Primary Key in the item Property Palette - in this instance you would set the property for Empno.
    Enforce Primary Key = no
    Key Mode = Unique
    Update Changed Columns Only = Yes
    I found a bug entry that is supposed to be fixed in Patch 9 of Forms 6i (assuming you are running 6i). So if you could try with a more recent Patch set (e.g. 14) then probably the problem will go away.
    Fran

  • How to view index details of another user

    I can't view index detail of another schema in sql developer release 5.
    I'm doing this steps :
    1) I'm connecting with user lopes
    2) Open folder of user mrt
    3) Open table folder
    4) select a table xpto. At this point is openeda a frame details of table xpto. In this frame several information are displayed, when I select Indexes nothing is showed, but this table has a lot of indexes.
    How should I make this indexes information visible ? I think this form is using user_indexes.
    Thanks in advance.
    Danilo

    Who owns the indexes?
    I have cases where I am logged on as a user who has access to a table owned by another user, but indexes created and owned by the connected user (so would obviously be able to see them) are not displayed on the indexes tab for the table.
    I get the same problem with triggers owned by the connected user and dependencies to objects owned by the connected user not displaying on the table tab for tables owned by a different user.
    Presumably, rather than excluding indexes, triggers or dependencies owned by the current user, the details are being restricted to objects owned by the table owner.

  • HT1229 I cannot view pictures in iPhoto that are in another user.

    WE have loads of pictures on another user, but I can't view them on my profile? I'm sure this is a simple fix, just still getting used to my new Imac.

    To view the other user's library setup fast user switching in the System/Accounts preference pane. Then log into the other user and open their library and leave it open.
    Also setup Sharing in iPhoto's Sharing preference pane in both accounts
    Return to your account and you'll be able to view the photos in the other account via iPhoto.
    OT

  • Copy Query View from one User to another User

    Hi
    I have a question that whether we can copy Query View created by an User to another User .
    Please help me with some way of doing it.
    Regards,
    Vimarsh

    Vimarsh,
    Can the user not just eMail their view to their colleague?
    Regards
    Gill

  • Camera being viewed by another user message

    I'm getting this message when I try to go to live streaming. Sorry, Camera live video cannot be viewed at the moment.
    The camera is being viewed by another user
    Anyone get this?

    yes, i get that too! at first i panicked but I think the system doesn't reset itself when you exit the camera and when you go back in it thinks your someone else - thats just my theory, or wishful thinking??

  • Trigger another Process Task after Enable User completed

    I would like to have a process task trigger after the "Enable User" process task successfully completed.
    E.g. Scenario
    A user currently has a disabled resource. When I enable the user, the Enable User process task
    gets called and enables the user. After that I would like to have my custom process task triggered after that.
    I tried adding my custom process task in the Enable User task as a dependent task, but it never gets called.
    Also, I tried adding the custom task to Tasks to Generate but that did not work.
    What am I doing wrong or am I missing a step?

    Instructions:
    Goal: When 1st process task is triggered, the 2nd process task will kickoff.
    1. Select the 1st process task
    2. In the Task Dependency Tab of the 1st process task, add the 2nd process task in the Dependant Task section.
    3. In the Responses Task of the 1st process task, select the SUCCESS response and add the 2nd process task in the Tasks to Generate section.
    IMPORTANT: Each response has its own Task to Generate. So make sure you add to the response you want the 2nd process task to trigger off by.

Maybe you are looking for

  • Itunes no longer syncs movies to my ipad

    I recently got tired of apps crashing on my ipad so I took it to the store and they wound up giving me a replacement. My music and apps sync to this replacement, no problem; but none of my movies will. These are the same movies that I had on my old i

  • HT1338 how do i load windows 7 on a mac air using the super drive?

    How do I load windows 7 on a Mac Air using the super drive?

  • Standard and Advanced Servers Working Together: Can it be?

    Ok, here's my current thoughts.... sort of follows from my previous post http://discussions.apple.com/thread.jspa?threadID=1408067&tstart=0 , but in a little more promising mood. I've got an xserve that was working quite well with standard install, o

  • DB Servlet failed to initialize ?

    I'm trying to port a working (JDBC) servlet from NES/Jrun to Oracle/Apache. I believe I have added the appropriate initArgs in the properties file, yet I'm getting an exception in the call of : public void doGet (HttpServletRequest req, HttpServletRe

  • Mac Pro Slow to load webpages

    Almost overnight, My MacPro (late 2009 Dual Quad, 2 1Tetra HD) started to REALLY slow down when loading webpages on both Safari and Firefox. Some times , I will get the "safari can't find browser" message...and if I try it again, it will load....afte