Users those who have personal views in a List

Dears,
Anybody can support me to find all the users those who have personal views in a SharePoint 2010 custom list named 'Grades' by using C# coding?
I am the farm administrator/ system account user.
Regards,
I am new to SharePoint

Thanks Subhash Reddy,
After running the given code, its showing me all the personal views under my top site collection.
But I want to see only the personal views of a custom list in a sub site
see my code here
static void Main(string[] args)
GetViews(new SPSite("http://myspserver/"));
static void GetViews(SPSite site)
SPWeb spweb = site.OpenWeb("EN/HR/");
foreach (SPUser oUser in spweb.AllUsers)
SPSecurity.RunWithElevatedPrivileges(delegate()
try
//SPSite oElevSite = new SPSite(site.ID, oUser.UserToken);
SPSite oElevSite = new SPSite(site.ID, spweb.Site.SystemAccount.UserToken);
SPWeb oElevWeb = oElevSite.OpenWeb("EN/HR/");
SPList splist = oElevWeb.Lists["Grades"];
SPViewCollection views = splist.Views;
foreach (SPView view in views)
if (view.PersonalView)
Console.WriteLine(oUser.Name + ":" + view.Title);
Console.ReadLine();
oElevWeb.Dispose();
oElevSite.Dispose();
catch (Exception ex)
Console.WriteLine(ex.Message.ToString());
In the above code you can see my custom list named 'Grades' under a sub site '/EN/HR', i want see only the personal views under this list.
Your support is appreciated.
Regards,
I am new to SharePoint

Similar Messages

  • Looking for feedback from those who have installed Windows

    I have an Intel iMac - brilliant machine, I love it. I have not installed Windows : I just don't have the need to justify doing it, but I'm glad to know I can if I do need, or just want to.
    Having a Mac is almost like being immune to viruses (almost - I'm not careless). Everytime I use a PC there are message about viruses - it must drive them crazy! And to install Windows on my iMac would render it vulnerable.
    I'm just looking for feedback from those who have taken the plunge: how's it working for you? I'm not so concerned about the speed...more so about .exe files running amok.
    There is no way I will install Windows without a valid need and hearing at least a couple of first hand user experiences

    I HAVE SPENT 1 HOUR TODAY AT THE APPLE SHOP ASKING THE GENIUS GUY - WHY ARE APPLE COMPUTERS IMMUNE TO VIRUS AND HOW DO I PROTECT MY PERSONAL INFORMATION FROM BEING INTERROGATED AND TRANSMITTED TO THE OUTSIDE WORLD.
    MY QUERY STEMS FROM EMAILS - IF THEY HAVE A PICTURE ATTACHED THE MACHINE WILL NOT OPEN THE PICTURES - THE MESSAGE SAYS TO PROTECT MY IDENTITY CLICK HERE IF YOU WISH TO DOWNLOAD. I HAVE TO MAKE A JUDGEMENT TO TRUST THE SITE WHICH SEEMS ODD AND SO WHEN I ALLOW THE DOWN - I DO WONDER WHAT IS GOING ON.
    I DO RUN A SEPARATE PC AND WHEN I DOWN LOAD THE MAILS ONTO THAT COMPUTER MY NORTON ENGAGES AND WARNS OF INFORMATION OF PRIVATE NATURE BEING ATTEMPTED TO BE TRANSMITTED - AT THAT STAGE I CAN STOP THE TRANSMISSION - ON THE MAC I HAVE NO MEANS - THE GENIUS GUY SAYS DON'T WORRY.
    HELP - CAN ANYONE TELL ME WHAT IS IT ABOUT MAC THAT WOULD SETTLE MY CONCERNS AND ALLOW ME TO DOWN LOAD IMAGES CONTAINED IN EMAIL WITHOUT WORRY OF THE COMPUTER BEING FRISKED FOR DATA AND IT BEING TRANSMITTED INTO THE OUTSIDE WORLD.

  • For those who have problems RE: My iPhone 4 on connecting to my pc shows my friends name in the DIGITAL camera Drive..It dsiplays my correct name when I`m on iTunes..PLEASE HELP ME HOW DO I CHANGE THE NAME IN THE DIGITAL CAMERA DRIVE??

    For those who have problems RE: My iPhone 4 connecting to my pc shows my friends name in the DIGITAL camera Drive..It dsiplays my correct name when I`m on iTunes..PLEASE HELP ME HOW DO I CHANGE THE NAME IN THE DIGITAL CAMERA DRIVE??
    SOLUTION:
    Iam pointing t0 windows7 os.
    1) go to control panel
    2) open hardware and sound
    3) In that open Devices and printers
    4)In that u can find Apple Iphone.
    5) now right click on this --> Hardware --> Properties --> General --> Uninstall --> ok.
    6) now unplug and plug in ur iphone again.There u go u iphone name changes to its original name.

    I am having this problem.  At first with the new iPhone 5, and then with the iPad 2.  I am not sure why this is happening. 
    My gut feeling is this is an iO6 issue and here's why -
    The problem mainly occurs with apps.  I have about 150 apps, and when I plugged in the phone, iTunes went to sync all of them.  The process would hang up after about 20 - 30 apps were loaded onto the phone. I could tell where about the process hung up because the apps on the phone showed up as "waiting".
    Then on the iPad 2 I plugged in to sync and saw there was a huge "Other" component in my storage.  It required me to restore the iPad 2 from backup.  With this restore the same issues occurred - putting the apps back on the iPad would hang up.  The videos on the iPad also got stuck - maybe after about 10 hours of videos transfered iTunes crashed.
    My solution has been to soft reset the device, restart Windows, and continue the process until it's complete.  This is remarkably inefficient and time-intensive but everything works with patience.
    I have been wondering if others have had these same problems. 

  • Question to those who have upgraded to a G4 chip .

    Hey everyone I am upgrading my Lombard (got a slot load cd burner with dvd player ordered for it and getting more ram next check ) and I want to know to those who have upgraded their 500 pismos to the 550 G4 could you really tell a difference from when you had the G3 from the G4 . Like in watching videos on youtube for instance . I am really thinking about this upgrade for my next project .

    Video does work better, but the old ATI video chips are the same so it won't be a night-and-day type of difference. Things that use the vector processing (Altivec) in the G4 should show the most difference, like encoding audio and exporting video.
    There's a long running similar topic here with lots of commentary.
    http://discussions.apple.com/thread.jspa?threadID=1503711

  • Per Adobe website, a download for Acrobat 9 for Mac is "not available." What alternative does Adobe offer to those who have bought and paid for Acrobat and now have computers without optical drive to install that previously purchased software? Buy a PC? B

    Per Adobe website, a download for Acrobat 9 for Mac is "not available." What alternative does Adobe offer to those who have bought and paid for Acrobat and now have computers without optical drive to install that previously purchased software? Buy a PC? Buy an external CD drive? Is the answer really "too bad"?

    Acrobat 9 for Mac can be downloaded from
    Download Adobe CS5 Free Trials – All Direct Links without Akamai | ProDesignTools
    Follow the Very Important Instructions on that page first BEFORE you click the download link.

  • I upgraded to OS8 for my Iphone 5 and now I have no access to e-mail and several apps. How can I address this problem? For those who have an iphone 5 I recommend not upgrading to the new OS until these bugs are resolved.

    I upgraded to OS8 for my Iphone 5 and now I have no access to e-mail and several apps. How can I address this problem? For those who have an iphone 5 I recommend not upgrading to the new OS until these bugs are resolved.

    I foolishly downloaded OS8 on my iPhone 4S. It not only greyed out my wifi button making it impossiblr to use wifi, but bluetooth connection doesn't work either. I reset the phone to factory settings but that did nothing apart from loose all my photos and contacts. OS 8 was still on after too. Apple say it is a problem but the download only brought the fact the hardware was faulty to the fore, but not being under warranty , the repair would cost £166 that I would have to pay. Totally unacceptable. If the problem was known and they knew it would cause problems on older models, why have it bob up on iTUNES for download.
    Don;t download it guys, APPLE aren't admitting culpability and it will cost you a fortune to put right!!

  • Advice from those who have had both the 2G and 3G iPhones

    I am seriously considering trading my 3G iPhone for a 2G version. Those of you who have had both- do you think i will regret the trade? Mostly I use the iPhone for calling and also for emails. The internet i use only if i don't have my laptop available and sometimes i use the GPS.
    Right now I pay per text msg as I did not want to pay extra for text messaging. If texting were included in the plan I would send more text msgs. I typically have the 3G turned off because I don't want the battery to be drained so quickly . . .
    Oh well, right now with all that said, it sounds like I probably won't miss the 3G and maybe need to save money for now by paying for the old data plan cost with the 2G phone . . . but there is always the wondering if i will regret the trade that may take place tomorrow afternoon.
    Any thoughts would be appreciated as I ponder this decision. . .

    I like my iPhone 3G more than my original iPhone. 3G is nice to have, GPS has helped me many times already when on the original it was much harder because it didn't know my exact location. I prefer the plastic backing, I get greatly improved EDGE reception where as it was very poor on the original. Speaker and speaker phone volumes are much higher. My battery life is the same from what I can tell, I don't normally keep 3G on since I really use it as a data connection only while mobile.

  • Future Music good for those who have not yet learned all

    Future Music Magazine, which I get on the magazine rack at my WalMart, has some good stuff in November-December issues for those who need to learn more. I am talking about a two-part article, "The A to Z of digital music". or something like that. A through M is covered in the November issue. N through Z is planned for December. Topics A-Z are explained in a paragraph or more. EQ is covered for example. November also has a tutorial sort of thing on Reverb.
    Future Music has not always been so helpful. I did not find much in the October issue akin to what I have mentioned above.
    I think these two issues of Future Music will be quite helpful to me and perhaps to others among us also.
    LuckyMan

    Correction. Various topics, beginning with A through Z, are EACH explained in a paragraph or more. Sometimes there is a little essay on a topic. Good for newbies and sometimes good for non-newbies who must do not know it all yet.
    LuckyMan

  • For those who have taken SCJA

    Are the questions on the SCJA of the same difficulty as represented in the on-line test(s) here:
    http://193.192.249.9/ExamScam/get.jsp
    Or, is the author of theses 'ExamScam's, actually making the tests look harder than they are to spook people into buying their products?

    No spooks there!
    The exam questions are extremely similar to the ones you actually experience on the exam.
    Which questions did you find hard? The server and client technology questions are tough, but that's probably the toughest part of the exam.
    The OO and UML mock exam simulations are right on target, emphasizing the is-a and has-a type stuff.
    By the way, students who have bought the books, and taken the exams have done amazing - we're talking scores in the high 90's.
    By the way, I've actually posted a few new mock certification exams as well:
    http://studyguides.scja.com/ExamScam/sunjavacertifiedtutorialsandmockexams.jsp?link=mockexams
    Enjoy!
    -Cameron McKenzie
    http://www.scja.com
    http://ww.portorials.com
    http://www.scwcd.com

  • Subscription for users who have personal subscript...

    Hi there
    I'm trying to add a subscription for a user but it refused to do so because that user has existing personal subscription. it says that the user needs to cancel that subscription.
    However, even after cancelling the subscription its still showing the same message. The subscription although cancelled is still active until march 2012 (it was paid yearly). Please don't tell me that I have to wait for 10 months to be able to manage subscription to that user. It would be really stupid to not have a way to cancel the subscrption completely, get a refund for remainding period and be able to manage from the manager.

    Hi Mahalakshmi.
    With FM SUSR_USER_DISPLAY_WITH_S_TCODE and GET_AUTH_VALUES you populate users and you get transactions. But we need to populate transactions and to get users.
    Regards.
    Raúl.

  • Those, who have owned macbook pro retina for half an year or more please share experiences

    what problems have you encountered with it so far? please include any serious software/hardware issues.

    ds store wrote:
    The anti-glare screen is really nice, use the machine in any location just about and see the screen fine.
    Glossy screens are terrible, reflects the overhead lights and windows, makes one want to use them in a dark room.
    Mac buying and maintenance advice
    This depends on the person. Some people's brain just seems to find any distraction on the glass intolerable.  I have always used glossy screens on the Mac portables and have never had an issue with overhead lights and even using it outdoors.  When I received a matte screen by accident from work I thought it was terrible compared to the glossy.  The entire screen looks washed out (since there is an entire layer of material on top of the glass that does not exist on the glossy).  The retina version of the glossy display is also noticeably less reflective then the non retina glossy displays.

  • To those who have upgraded their Hard Drives...

    Did you ever have to disable the sudden motion sensor on the MacBook Pro, so that your new hard drive would work properly?
    I would imagine if the hard drive makers had this conflicting feature, Mac OS X would disable in favor of its own sudden motion sensor during installation.
    Would love to hear from Hitachi 500 GB, 7,200 RPM and Seagate Momentus users?

    I can't see any specific mention on that page or in their own tech specs sheet ... the only way to be certain is to phone OWC I'd guess.
    It's 50% more than the Seagate and doesn't perform any better in most benchmarks are you sure you want that brand ?
    http://www.storagereview.com/hitachitravelstar_7k500review
    Found the manual here but can't find any mention of sensor there either ...

  • For those who have installed a new hard drive...

    Like many of my fellow Mac-Heads, I am running out of storage spae on my little G4 12-inch. I have the 80G Fujitsu and would like to upgrade for more space. There are some 120G notbook drives on sale right now, and my scenario would go something like this:
    1. Get the 120G Samsung ATA drive
    2. Buy an eclosure to make the new drive an external drive
    3. Run Disk Utility and copy my 80G drive contents onto the new 120G in the enclosure
    4. Follow the online steps and intall the new 120G drive into the drive bay in my little G4 12-inch (looks fun and do-able!)
    5. Run this configuration for a while, maybe a few weeks, and make sure it is all kosher with the new 120G drive inside.
    Once complete, this would give me a new 120G internal drive and a whole 80G drive of external storage.
    Problem is, I am not sure that it would work. You see, the 80G drive is partitioned and do not know how this would affect my swap.
    Has anyone tried this, and what effects, if any, would I incur in the trade? How would the formatting of the new 120G drive be affected, aside from the usual "loss" of a few Gigs in the formatting process? Would it end up only being able to see the size of the original drive? (I am technically competent in the physical swap so that is not an issue.)

    I did this about a year ago, but I went from 40 to 80gb. I pulled the 40 out and installed the 80. I put the 40 into a firewire enclosure. I installed a fresh copy of 10.4 onto my new 80gb. And then I transfered all the files I needed from the 40 to the 80 - i.e. back onto my powerbook.
    I was lucky in that I went from 5400rpm to 7200rpm and my little revision A 12" seemed zippy again. - till I crammed it full again within 6 months. The real solution is to have a honkin' external hd to keep the really big files on.
    Of course, I backed up the 40 on a separate 40gb external before I began.
    Haven't looked back and I now have a small 40gb "rescue" disk.
    PB 12" Rev. A   Mac OS X (10.4.7)  

  • For all those who have trouble with their router. STICCY THIS!

    1.) Clicc HERE
    (ftp://ftp.linksys.com/pub/network/)
    and download the file named "tftp.exe".
    2.) Clicc HERE and download YOUR, AND I REPEAT YOUR AND I MUST REPEAT AGAIN, YOUR ROUTER'S LATEST FIRMWARE. Please for the love a God, Allah, Jah, or whoever you look up to. PLEASE PLEASE PLEASE DOWNLOAD THE RIGHT FIRMWARE. If you don't know what version or model router you have, look at your router's home page or you can actually look at your router with your eye. Voila! You now know your router's model/version. Download the lastest firmware for your router.
    -----------------------**IMPORTANT**------------------------------------------------*************-------------------------
    It is strongly suggested that you remove all connections from your router except the one for the computer you are using! Not removing the other connections from the router can cause a corrupted firmware, and the dreaded flashing diag light.
    3.) Double clicc on/open up the TFTP.exe file. Enter your password (admin if you haven't changed it), use the browse feature to find the (latest)firmware you just downloaded. Then, click on "upgrade". You should see a progress bar, then the message that you have successfully upgraded your router.

    I have a WRT54G ver.6. It works perfectly with a windowns PC but not for my Mac. I have high signal but no internet. Do you know if this model is not compatible with Macs? thank you Simone

  • Is  mountain lion will cost money to those who have the new macbook pro with the latest version of the lion?

    My question is very understandable, I ask because I have the latest Macprofessionals, which is already up to date,thanks .Gil

    My question is very understandable, I ask because I have the latest Mac
    pro,which is already up to date,thanks .Gil

Maybe you are looking for

  • Generation of xml file from java code

    hi, I want to manipulate data in a xml file with java code.I have read data from xml file and also changed it. But i am unable to covert it again in xml file from java code. Can you please tell me how i can do this?

  • I can't delete in iTunes

    Ever since I upgraded to Leopard, I can't delete in iTunes. It crashes "unexpectedly" every time. It is no longer unexpected. Please help if you can...

  • Crystal reports - Create Report from SAP Bex Query

    I have installed the Crystal reports 2008 for a trial period and the sap integration kit. I have created a new report from a sap query and I am trying to format the report. I would like the columns headings be similar to Bex query - Current Month Jan

  • Document type controll with respect to plant

    Hi, I have created two document type NB & ZB for purchase requisition , my requirement is whenever i select plant 1 in item level it should select N document type and for plant 2 ZB doc type, if  end user select wrong document type for plant for ex:

  • How to change the location of the GPS?

    I have an iPod Touch and when I'm on facebook chat says to send the message from Buenos Aires (Argentina) when I'm really in Colombia, how I can fix this? thank you very much