SPContext.Current.Web.CurrentUser.OwnedGroups not incling the Groups where the user added throgh AD groups.

Hi All,
i am facing a strange problem. i am having a sharepoint group ( i.e. SP1). inside
SP1 grops i have added one AD group (i.e. AD1). when try to findout the Current user groups it not including this. However if addd the user directly to SP1 then it show the groups.
I use below code to find out the groups.
SPContext.Current.Web.CurrentUser.OwnedGroups
Thanks and Regards
Er.Pradipta Nayak
Visit my Blog
Xchanging

Hi,
The
SPUser.OwnedGroups property returns a group of
SPGroup objects that the SPUser owns.
When AD users or AD groups added in a SharePoint group, both will be seen as SharePoint user objects. That means “AD1” is only a SPUser object, not a “group”, there
is not a collection of SPUser objects in this SPUser object(AD1).
Therefore, the AD users added in the AD group will not belong to a SPGroup, though they have the permissions given through this SPGroup.
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • Hello, I am running a Mac book pro soft. 10.5.8 version. Since june the current year I did not get any updates for the software or any kinds of other application, in my opinion that's weird for such a company.

    Hello, I am running a Mac book pro soft. 10.5.8 version. Since June the current year I did not get any updates for the software or any kinds of the other application, in my opinion that's weird for such a company.
    The problem that I have now is with the Iphone 5 which is not supported for the current Itunes and I can not download the Itunes 10.7 version. What I supposed to do in this case because I can not syncronize at all.
    Please give me a hand as soon as possible.
    Many thanks

    Mac OS X 10.5.8 is years old, 3 major versions out-of-date and unsupported at this point. You will never get any further updates for 10.5.8, and more and more applications will stop supporting 10.5.8 as time goes on. As mende1 points out, you can buy Snow Leopard (Mac OS X 10.6), which will let you use your new iPhone with your computer, but you need to make sure your computer's hardware is supported. See the system requirements for Snow Leopard:
    http://support.apple.com/kb/SP575
    If your computer cannot run Snow Leopard, you will need to either buy a new computer or abandon any thoughts of syncing the iPhone with that computer.
    Also, note that you'll get far better integration of your iPhone and your Mac if you're using Lion (Mac OS X 10.7) or Mountain Lion (Mac OS X 10.8), which are required to use iCloud. Of course, the requirements of those systems are even steeper than those of Snow Leopard:
    http://support.apple.com/kb/HT4949
    http://support.apple.com/kb/HT5444

  • Certain web pages will not load and itunes and the appstore wont load either, what could be a probable cause and solution to this problem?

    certain web pages will not load and itunes and the appstore wont load either, what could be a probable cause and solution to this problem?

    the router is a netgear wireless extreme for pc and mac

  • Keep getting a pop up at the top of many websites I visit 'firefox security error content at *web address* may not load" I am using the most recent firefox and windows 7.

    Keep getting a pop up at the top of many websites I visit 'firefox security error content at *web address* may not load" I am using the most recent firefox and windows 7. This is happening at many sites, such as hotmail, google reader, and many others.

    Sorry, I don't think that is a message from inside Firefox, the wording doesn't sound correct - at least the beginning of that message. My "gut" thinks that is a MSN Live message to explain and compensate for their lack of security with a re-direct from a secure domain to an un-secure domain. ''(the end of that message)''
    {Ctrl + Shft + J} will open the Firefox Error Console - I'm curious what Firefox has to say about that situation. If you find the error message for that domain, you can right-click the message to '''copy''' it and then paste that error message here.
    Maybe '''TonyE''' or '''cor-el''' will be more familiar with the situation at Live and maybe at Google Reader, I don't use either of those services and have never seen a message like that myself.

  • The storage where the virtual hard disk is located does not support virtual disk sharing

    Hi everyone,
    I deployed 2 hyper v vitual machines a while ago, and i did that because I needed to test my current game Project, which is an
    online game. However, i've had some problems with my Windows installation then I had to reset the pc by making it a refresh
    install. I still have the hyper v virtual disks, but i cannot attach it to a new hyper-v virtual machine. it pops up this message:
    "the storage
    where the virtual hard disk is located does not support virtual disk sharing". I dont know anything about virtual machines, so I
    didnt know I had to make the disk sharable. How can I force to attach the hard disk to a new hyper-v? I dont want to go t
    hrough the whole proccess of installing the operating system all over again and updating it....
    Any help is greatly appreciated!
    Thanks in advance,
    Romulo Romero

    Hi MrDebugging,
    >>
    When I Try to add a SCSI Controller, and then I click browse to add a UNC I get this:
    C:\Users\Public\Documents\Hyper-V\Virtual hard disks\ClienMachine.vhdx
    but I tried placing in different location, and the same problem occurs!
    By the way, Im not on a server , I am a domestic user and I am running it on my
    Windows 8.1
    According to the error message , it seems that it is not a permission issue .
    The VM is Gen 1 or Gen2 ?
    Generally the error message occurs when you enable "shared vhdx" on standalone/client hyper-v host :
    Please try to attach the VHDx file to IDE controller if it is a Gen 1 virtual machine (because only the SCSI controller has the option "virtual hard disk sharing" and Gen 1 VM only can boot from IDE )
    All in all , please do not use this feature without CSV or Scale-Out File Server with SMB 3.0 on file-based storage .
    If it is not the case , please detail steps what you did .
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • The storage where the virtual hard disk is located does not support virtual hard disk sharing. (Hyper-v / Windows 10 Enterprise Tech. Preview)

    I am attempting to create new virtual machines in Hyper-V on Windows 10 Enterprise Tech. Preview and I am continually getting the error "The storage where the virtual hard disk is located does not support virtual hard disk sharing.". I am not trying
    to setup a shared VM or VHD, just a basic VHD.
    Does anyone have any suggestions on how to resolve this issue?

    This issue is listed in the release notes and currently there is no fix on our side. Have to wait for the next build.
    "Known issues in Build 10049
    If you have Virtual Machines hosted on your PC running Windows 10, you will want to move to the Slow ring and wait for the next build as this build breaks the ability to run VMs. "
    The statement is miss-quoted. It was about Hyper -V. An update KB3053898
    was released to fix that
    See the blog
    Here :
    excerpt........notice the statement has been crossed off in the blog.
    UPDATE: You cannot enable Hyper-V on this build. If you have Hyper-V already enabled and you upgrade to this build, Hyper-V will continue to work. <del>If you have Virtual Machines hosted in Hyper-V on your PC running Windows 10, you will want to move
    to the Slow ring and wait for the next build as this build breaks the ability to run VMs.</del>

  • I have just upgraded from CS 6 (Dreamweaver) and now when I click on a picture on a web page in Dreamweaver it doesn't go to the folder where the photo is stored anymore.  If this continues I'll have to go back to CS 6 as I have to put in alot of photos.

    I have just upgraded from CS 6 (Dreamweaver) and now when I click on a picture on a web page in Dreamweaver it doesn't go to the folder where the photo is stored anymore.  If this continues I'll have to go back to CS 6 as I have to put in alot of photos.

    I am using dw cc and I just double click picture I want to change in dreamweaver cc and my image folder opens, select new photo and then it updates and I am good to go, I am using a mac

  • TS3694 when doing a restore to try and solve a wifi problem with my iphone 5 i got past the point where the software was extracted from my phone but then an error message came up saying that the phone could not be restored because of an unknown error (301

    when attempting a restore,  as suggested, to try and fix a week wifi signal on my iphone 5 I got past the point where the sopftware was extracted from my phone but then an error message appeared saying that the phone could not be restored becase of an unknown error (3014). I have tried about 20 times to make it work after trying a number of suggestions I have seen online. My phone gives me know response accept showing a picture of the cable and the itunes symble an the screen permanently - please help

    Hello JD_NINJA,
    Thanks for using Apple Support Communities.
    Error 9006 when restoring your iOS device indicates that there is security software on your computer which is preventing connection to the Apple server or your device.  To troubleshoot this issue please follow the directions below.
    Check your security software
    Related errors: 2, 4, 6, 9, 1611, 9006. Sometimes security software can stop your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't blocking a connection to the Apple servers.
    Get help with iOS update and restore errors - Apple Support
    When restoring your iPhone, please make sure to follow the directions in the link below to properly restore.
    Restore your device from an iCloud or iTunes backup - Apple Support
    Take care,
    Alex H.

  • HT2188 I just got an iPad mini, when I try to upload my iPhone backup from my Mac i get the message to upgrade my iTunes. I can not seen to find where the download link is for iPads on apple website. Can anyone help?

    I just got an iPad mini, when I try to upload my iPhone backup from my Mac i get the message to upgrade my iTunes. I can not seen to find where the download link is for iPads on apple website. Can anyone help?

    The message is referring to iTunes on your computer, not the iPad : http://www.apple.com/itunes/download/
    The built-in apps on the iPad can only be updated via iOS updates, so if your iPad mini is on iOS 6.0.2 then its up-to-date

  • LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides

    HI
    When I put a network shared variable with fifo RT activated on my diagram, the arrow is broken.and I' ve got this message:
    ""LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides""
    If I uncheck FIFO RT option for this variable the arrow isn't broken anymore.
    I 've no idea how to correct this weird error?
    Autodeploy is on, and I've check copy / delete in diagram in tool/options\diagram
    regards,
    james

    Hello,
    I don't reproduce this error.
    Could you send your VI?
    Regards
    VéroniqueD
    NI France

  • My MacBook running Mountain Lion does not allow me to view any videos on the Internet. The place where the video is supposed to be just shows black rectangle. Is there anything I can do to make videos on line work?

    My MacBook running Mountain Lion does not allow me to view any videos on the Internet. The place where the video is supposed to be just shows black rectangle. Is there anything I can do to make videos on line work? I discovered that Java quits immediately. Could that be the cause? If so, how do I fix it?

    My MacBook running Mountain Lion does not allow me to view any videos on the Internet. The place where the video is supposed to be just shows black rectangle. Is there anything I can do to make videos on line work? I discovered that Java quits immediately. Could that be the cause? If so, how do I fix it?

  • My iphone 4 has a SIM card and lately is saying that it is not installed when it is, and it has a small light in the screen where the card goes into the slot, why is this happening?

    my iphone 4 has a SIM card and lately is saying that it is not installed when it is, and it has a small light in the screen where the card goes into the slot, why is this happening?

    Hi cosmoph1,
    If you are having issues with your iPhone not recognizing the installed SIM, you may find the following article helpful:
    iPhone: Troubleshooting No SIM
    http://support.apple.com/kb/ts4148
    Regards,
    - Brenden

  • I keep getting internet explorer cannot display web page when trying to download itunes. This only shows on half the page where the download link would be. My internet connection is fine.

    I keep getting internet explorer cannot display web page when trying to download itunes. This only shows on half the page where the download link would be. My internet connection is fine.  Any idea what the problem may be?

    You won't see anything obviously related to iCloud, Jimmy. But if you go to the home iTunes Store page while logged into your iTunes Store account, you should see a Purchases link now under the Quick Links header. That's the only part of iCloud active at this time.
    Regards.

  • I have just dowloaded iTunes new version 10.4 (on Windows), and I can't paste artwork from Word anymore, only directly from the net (where the size or the quality are not always optimal). Any way around this?

    I have just dowloaded iTunes new version 10.4 (on Windows), and I can't paste any artwork from Word anymore, only directly from the net (where the size or the quality of the images is not always optimal). Major problem given that I'm in the process of re-ripping some 40K+ songs in Lossless format... Any way around this?

    Peter Hah
    After spending another two days on pinning down the iTunes 10.5 blank store page problem, here's the solution to be found: https://discussions.apple.com/thread/3372617?start=0&tstart=0
    Look out for "japiohelp".
    In short:
    a) press Windows key + "R", enter "cmd", and press Ctrl+Shift+Enter (= runs as admin)
    b) enter "netsh winsock reset" and pres enter
    c) reboot the computer
    and Bob's your uncle.
    P.

  • Whenever i charge my laptop, the side where the charger is plugged in heats up a lot whereas the other wise of the laptop is definitely not at the same temperature?

    whenever i charge my laptop, the side where the charger is plugged in heats up a lot whereas the other wise of the laptop is definitely not at the same temperature? its as if it makes my laptop overheat but mostly from the left hand side

    TEMPS
    TEMPS
    HD: Macintosh HD, Untitled
    41°
    CPU
    72°
    Enclosure Base
    39°
    Enclosure Base 2
    39°
    Enclosure Base 3
    39°
    Enclosure Base 4
    38°
    Heatsink A
    65°
    Heatsink B
    55°
    FANS
    FANS
    Exhaust
    6196rpm
    these are the details it shows for my temperature- can you tell me what i can interpret from these figures?

Maybe you are looking for