Get OneDrive library of a user in CSOM

Hi,
   I want to access a users OneDrive library using CSOM in a provider hosted app for Sharepoint online account. I am trying the following code but it returns 403. The App is installed on a development site. 
                    ClientContext ctx
= new ClientContext(personProperties.PersonalUrl);
                    ctx.Load(ctx.Web, w
=> w.Title, w => w.Url, w
=> w.EventReceivers);
                    ctx.Credentials
= CredentialCache.DefaultNetworkCredentials;
                    ctx.ExecuteQuery();
The permissions of my app Manifest are set to 
    <AppPermissionRequest
Scope="http://sharepoint/social/tenant"
Right="Manage" />
    <AppPermissionRequest
Scope="http://sharepoint/content/tenant"
Right="Read" />
Please note that the code is running in an app and I do not have the administrator password.

The credentials you are using must either be an administrator or a user that the other onedrive user has granted access to.
http://community.office365.com/en-us/f/154/t/234252.aspx
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer

Similar Messages

  • I lost an xcel doc. Tried to find the Library folder in Users not there when use Finder. But when trying to upload a photo, iphoto found the library folder I can see my doc in Office 2011 Autorecov, but can't access it! How do I get User to show Library

    I lost an xcel doc a couple of days ago. Tried to find the Library folder in Users but not there when I use Finder (even when I do shift-command-G). But when trying to upload a photo in iphoto I found the library folder in Users. I can see my doc in Office 2011 Autorecovery, but can't access it! How do I get User to show Library then I can get to my long lost document?

    The auto recovery dat should be in the Microsoft User Data folder in your documents folder, not in the Library. However, I Haven't had to look recently.

  • Why do I  get message on my Nook "user not activated" when I try to read a borrowed book from the library.

    I get message on my Nook "user not activated" when I try to read a borrowed book from the library. Book is there and I can read on my computer but not the Nook. Can read purchased books on Nook.

    Please add me to that exact problem on my Nook - Tim

  • Sharing an iTunes Library across multiple user account and a network.

    Sharing an iTunes Music Library across multiple user accounts.
    Hello Everybody!
    Firstly, this was designed to be run in Mac OS X 10.4 Tiger. It will not work with earlier versions of Mac OS X! Sorry.
    Here's a handy tip for keeping your hard drive neat and tidy, it also saves space, what in effect will be done is an iTunes music library will be shared amongst multiple users on the same machine. There are advantages and disadvantages to using this method.
    • Firstly I think it might be worthwhile to state the advantages and disadvantages to using this approach.
    The advantages include:
    - Space will be saved, as no duplicate files will occur.
    - The administrator will be able to have complete control over the content of the iTunes library, this may be useful for restricting the content of the Library; particularly for example if computer is being used at and education institution, business or any other sort of institution where things such as explicit content would be less favorable.
    - The machine will not be slowed by the fact that every user has lots of files.
    The disadvantages to this system include.
    - The fact that the account storing the music will have to be logged in, and iTunes will have to be active in that account.
    - If the account housing the music is not active then nobody can use the iTunes library.
    - There is a certain degree of risk present when an administrator account must be continually active.
    - Fast User Switching must be enabled.
    Overview:
    A central account controls all music on the machine/network, this is achieved by storing iTunes files in a public location as opposed to in the user's directory. In effect the system will give all users across the machine/network access to the same music/files without the possibility of files 'doubling up' because two different users like the same types of music. This approach saves valuable disk space in this regard and may therefore prove to be useful in some situations.
    This is a hearty process to undertake, so only follow this tutorial if you're willing to go all the way to the end of it.
    Process:
    Step 1:
    Firstly, we need to organize the host library, I tidied mine up, removing excess playlists, random files, things like that. this will make thing a bit easier in the later stages of this process.
    Once the library is tidied up, move the entire "iTunes" folder from your Home directory to the "//localhost" directory (The Macintosh HD) and ensure that files are on the same level as the "Applications", "Users", "Library" and "System" directories; this will ensure that the files in the library are available to all users on the machine (this also works for networks)
    Optionally you can set the ownership of the folder to the 'administrator' account (the user who will be hosting the library.), you may also like to set the permissions of 'you can' to "Read & Write" (assuming that you are doing this through the user who will host the library); secondly you should set the "Owner" to the administrator who will be hosting the library and set their "access" to "Read & Write" (this will ensure that the administrator has full access to the folder). The final part of this step involves setting access for the "Others" tab to "Read Only" this will ensure that the other users can view but not modify the contents on the folder.
    Overview:
    So far we have done the following steps:
    1. Organized the host library.
    2. Placed the iTunes directory into a 'public' directory so that other users may use it. (this step is essential if you plan on sharing the library across multiple accounts on the same machine. NOTE: this step is only necessary if you are wanting to share you library across multiple accounts on the same machine, if you simply want to share the music across a network, use the iTunes sharing facility.
    3. set ownership and permissions for the iTunes music folder.
    Step 2:
    Currently the administrator is the only user who can use this library, however we will address this soon. In this step we will enable iTunes music sharing in the administrator's account, this will enable other users to access the files in the library.
    If you are not logged in as the administrator, do so; secondly, open iTunes and select "Preferences" from the "iTunes" menu, now click the "Sharing" tab, if "share my library on my local network" is not checked, the radio buttons below this will now become active, you may choose to share the entire libraries contents, or share only selected content.
    Sharing only selected content may be useful if their is explicit content in the library and minors use the network or machine that the library is connected to.
    If you have selected "share entire library" go to Step 3, if you have selected share "share selected playlists" read on.
    After clicking "share selected playlists" you must then select the playlists that you intend to share across your accounts and network. Once you have finished selecting the playlists, click "OK" to save the settings.
    Overview:
    In this step we:
    1. Enabled iTunes sharing in the administrator's account, now, users on the local network may access the iTunes library, however, users on the same machine may not.
    Step 3:
    Now we will enable users on the same machine to access the library on the machine. This is achieved by logging in as each user, opening iTunes, opening iTunes preferences, and clicking "look for shared music". now all users on the machine may also access the library that the administrator controls.
    This in effect will mean that the user will not need to use their user library, it will be provided to them via a pseudo network connection.
    As a secondary measure, I have chosen to write a generic login script that will move any content from the user's "Music/iTunes/iTunes Music" directory to the trash and then empties the user's trash.
    This is done through the use of an Automator Application: this application does the following actions.
    1. Uses the "Finder" action "Get Specified Finder Items"
    1a. The user's "~/Music/iTunes/iTunes Music" folder
    2. Uses the "Finder" action "Get Folder Contents"
    3. Uses the "Finder" action "Move to Trash"
    4. Uses the "Automator" action "Run AppleScript"
    4a. with the following:
    on run {input, parameters}
    tell application "Finder"
    empty trash
    end tell
    return input
    end run
    IMPORTANT: Once the script is adapted to the user account it must be set as a login item. in order to keep the script out of the way i have placed it in the user's "Library" directory, in "Application Support" under "iTunes".
    Overview:
    Here we:
    1. Enabled iTunes sharing in the user accounts on the host machine, in effect allowing all users of the machine to view a single iTunes library.
    2. (Optional) I have created a login application that will remove any content that has been added to user iTunes libraries, this in effect stops other users of the machine from adding music and files to iTunes.
    Step 4:
    If it is not already enabled, open system preferences and enable Fast User Switching in Accounts Options.
    Summary:
    We have shared a single iTunes library across multiple user account, while still allowing for network sharing. This method is designed to save space on machines, particularly those with smaller hard drives.
    I hope that this hint proves to be helpful and I hope everybody will give me feedback on my process.
    regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme   Mac OS X (10.4.6)   iWork & iLife '06, Adobe CS2, Final Cut Pro. Anything and Everything!!!

    how to share music between different accounts on a single computer

  • Does home sharing allow me to share my iTunes library with other users on the same imac

    Does home sharing allow me to share my iTunes library with other users on the same imac? 

    Apparently so (as long as each user operates out of a different Mac User account).
    After setting up home sharing in the various different user accounts on the Mac, you need to have iTunes open in the account that you want to Home Share from.
    Now use fast User Switching to get into the account that you want to Home Share to. Launch iTunes in there. The library in the other account should appear as shared for you.

  • What is the best way to share a iTunes library between 5 users on the same computer?

    What is the best way to share a iTunes library between 5 users on the same computer?
    Currently I have a common itunes library in a shared folder that each user is linked to.  The problem is that when one user adds music to the shared file, it does not automaticaly appear to other users when they open their iTunes.  They have to go to the shared library and select the new music in order to make it visable in their iTunes.
    Would iTunes file shareing fix this problem?
    Thanks

    aapl.up wrote:
    Rick, are you saying that if you try to share a folder outside of home and use sharepoints, then the other mac wont prompt you to log in? Have you tried that? It is hard to believe that is the case
    I am sort of saying that. Have you tried it? I know it's hard to believe, but you really need to help us out by trying some steps that you don't believe.
    We can't see what your exact situation is. We sort of know what's worked for us out here. Just trying to help you get this going in less than 24 hours!
    Sharepoints manages the samba configuration file. It's free software that puts a pretty face on an otherwise cumbersome config file.
    Give it a shot.
    windows will not prompt for passwords, I have tried this with multiple computer at home for both vista and xp
    As I stated. You will not get prompted on windows, if you have set up sharing in an insecure fashion. You are not using a secured sharing situation.
    No argument with your statement.

  • How can I share the FCPX library so another user on the same iMac can access and edit it?

    I need to let another user access our Library file to add some subtitles to a video I'm editing.
    This is a breeze with iMovie now, as I moved the Library to the Users/Shared folder and changed permissions so the other user can read+write.
    I tried the same with FCPX and then tried to launch FCPX from the other user's profile, but it wouldn't work saying it needs permissions, even though I did the thing with permissions.
    After some playing around, I broke it and had to use that Preference File eraser because the Library stopped working even on my account.
    Is there a way to ensure the library can be accessed by both of us, on the same iMac? (Note: I was logged out while trying to get the second user to work).

    Thanks.
    If it's in the Shared folder, then for whatever reason FCP is busted and won't work?
    Have a 1TB Fusion drive, wouldn't this make editing stuff slower if it's an external drive?

  • How to share itunes library with multiple users, and keep organised

    Hi,
    I'm using iTunes (v12) on Windows 7 and am trying to set myself up so that multiple users on this PC are sharing the same library. I've followed the guidance mentioned on a couple of other threads, and put the library in the Users\Public\Music location, and on each user account have pointed iTunes to this location. This has worked OK, as both users can see all the music.
    However, problems arise when User A deletes a couple of files (duplicates for example) - User B logs in, and the song is still listed in the library, but with an alert stating the original file cannot be located. They then have to go through the library and also delete these entries. Equally, if User B adds some music files (as opposed to iTunes downloads), they are not visible to User A until they "Add file to library..."
    Are there any further steps that I can take to keep both users views of the library identical, without manual intervention by the second user whenever the first makes a change?
    Cheers,
    Matt

    The way you've set it up each user has a distinct library, but is accessing a common set of media files and folders.  To accomplish what you want, you need to have a complete iTunes library (database + media) in a common location - typically this would be C:\Users\Public\Music\iTunes.  See turingtest2's notes on Make a split library portable for the steps that may be needed to bring your library into a suitable structure.  Based on your description, you'll need to select one user's library (C:\Users\username\Music\iTunes\iTunes Library.itl) to act as the shared "master" and move this to the Public folders.
    Then, for each user, hold down SHIFT while starting iTunes - when you get this prompt:
    click on Choose Library..., navigate to C:\Users\Public\Music\iTunes, select the iTunes Library.itl file you'll find there, and click Open (you'll only need to do this once for each user account).
    Note, though, that iTunes is inherently a single-user application - any attempts to run iTunes at the same time will cause errors (and, in the worst case, possible corruption).  For this reason, its a good idea to disable fast user switching in Windows so that only one user can be logged in, and running iTunes, at the same time.

  • Use 1 itunes library for multiple user accounts

    Is there a way to use 1 library for multi-user accounts on mac osx? I have 4 iphones and was previously using the main account only. I'm getting tired of having everyones contact lists downloaded into my main phone. I can't seem to figure out how to sync the music to the same library.

    Hi There,
    I sync 2 iphones with the same library, and to stop the other iphones contacts adding to mine I have two groups in the address book, one has my contacts in and the other my friends. I then just sync the appropriate address book in the info pane when the iphone is plugged in.
    Hope this helps.

  • Sharing my iTunes Library with other Users on my computer?

    ...hi guys! Nice to find this friendly commumity!
    I wonder if any of you have worked out how to share the library across other users on the computer yet?
    I share a PC with my girlfriend, and all of our downloads on iTunes are from our CD collection. But as I installed iTunes on my user account, she can't get the songs now!
    When she opens iunes from her user account, it's a blank library!
    Please help!
    Thanks chaps,
    Kerr
    Message was edited by: heinzeman

    Chris CA wrote:
    Move the entire _iTunes folder_ located in *My Documents/My Music*/ to a Shared directory. Make sure to set this folder for read/write permissions for all users.
    I set my permissions as follows OS 10.4.X:
    first under the original owners login, change all permissions to read & write, then change 'group' to wheel. Then change the owner from the user to system (I applied to all within ~ may not be necessary).
    Start iTunes holding the Shift key and select *Choose existing library* then pick the iTunes library file you moved into the Shared directory.
    In iTunes 7.5, you'll need to hold the Option key and then pick the /Users/Shared/iTunes/iTunes Music
    Quit iTunes and log out of your user and let her log in.
    Start iTunes holding the Shift key and select *Choose existing library* then pick the iTunes library file you moved into the Shared directory.
    Now she needs to File -> *Add folder to library* and pick *My Documents*/My Music*/*iTunes*/iTunes music*.
    This will add all her music to the common library.
    Once this is complete, she can delete *My Documents*/My Music*/*iTunes.
    Do this for all users. Any changes made by one will be seen by all.

  • Sharing one library with two user accounts.

    I want to share one iTunes library with two user accounts on the same iMac.
    I've followed the tutorial where you move the iTunes Music folder to a shared location HD/Shared/iTunes and then pointed both iTunes to that location via the advanced menu, but only the admin account has the music. The other user account iTunes shows nothing.
    Also, I've now moved the music folder back to my area on the HD (not shared any more) and now the iTunes music folder shows all the album folders where before I guess they were hidden. Why and how do I get it back to how it was...?
    All we're trying to do is share one mac. My wife and I have our own log in user accounts, but want to have the same music and iPhotos accessible on our own set-ups.
    Thanks for any help.

    Out of interest I got this to work.
    I made a folder called 'All Music' and put all the album folders in it.
    Moved this folder to User/Shared/ and then clicked on the file, and Get Info.
    In Get Info added my wife to Sharing & Permissions as Read & Write.
    In iTunes / Advanced found the folder on my user account, and then did the same on my wife's account and hit add to library.
    I hope this was the right way to do it..... It seems to have worked.

  • How can I sync the same iTunes 11 library between 2 users on the same Mac?

    With iTunes 10 I was able to have one main iTunes library under one user and have a second user (on the same Mac) access it by putting an alias of the iTunes Libray.itl and iTunes Music Library.xml files in the second user's iTunes folder.  This ensured that the library remained synced regardless of which user added or made changes to it.  With iTunes 11, I am no longer able to do this.  If I try I get the following error pop up:  'The iTunes application could not be opened.  An unknown error occured (13014)'.  If I delete the aliases in the second user's account the error message goes away but nothing shows up in the main iTunes window.
    I've been able to at least access the iTunes library (which is stored on an external drive) with the second user by changing the iTunes media folder location in advanced preferences to the main iTunes library and then selecting file/add to library and selecting the iTunes media file which (eventually) pulls up all the song/movie/apps etc. information.  However, the 2 libraries do not remain synced (i.e. a change in one does not show up in the other).
    Anyone know of a way to get one library to remain synced between 2 user accounts on the same machine with iTunes 11 or am I going to be forced to delete and recreate the second user's iTunes info frequently to 'catch up' with the original?
    Any help would be appreciated.

    I'm surprised the alias method worked, and it certainly isn't the prescribed method.
    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189
    Chris CA's instructions on sharing one iTunes music library between multiple user accounts - https://discussions.apple.com/message/8974074 - Multiple users using a single library file - similar post at: https://discussions.apple.com/thread/3753008
    Suggestion by Turingtest for multiple users and one library - http://discussions.apple.com/message/9117622 - use smart playlists and tags to isolate groupings.
    Discussions on using purchases from multiple AppleIDs in one iTunes library - https://discussions.apple.com/message/19543804

  • Move an iPhoto Library to another user account on the same computer - File Permissions Error

    I am having trouble moving an iPhoto Library from one user to another.   I copied the library to a shared location, then on the same computer I switch to the other user only to find that there is a little red - in a circle on the folder.  I am unable to do anything with the folder.  I have checked the "Get Info" and permission to read and write is selected for all users.  From everything I have read I should be able to just copy the Library to any location I would like and then open the Library on other computers.  Any help would be greatly appreciated.
    Further information: I am running on OSX Lion (10.7.3) with iPhoto 09 (8.1.2).  I have my iPhoto Library working in the account of an admin on the computer. Unfortunately I have redundant users on the computer and want to consolidate everything to the original user on the computer, or the user that set up the computer originally.  This "original" administrator cannot be delete so I am moving everything from user "B" into the "original" administrator on the computer.

    Because I had no idea what I was doing! :-P
    I see now that I needed to move the library into the new user's Pictures folder, not import it.
    My biggest problem was that I couldn't get rid of that dumb red circle. I think this happened because I just moved the user's Picture folder into the Shared folder before adjusting the permissions. Of course, I'm a bit like a kid trying to explain how the rocket got the moon. I could be mistaken...
    Still, here was the work-around that worked for me:
    - go into the user with the iPhoto library ("first") that I wanted to move to another user ("new")
    - right click on the iPhoto library file, located in the in "first" user's Pictures folder
    - unlock the folder and then change the permissions to allow everyone to "Read & Write"
    - copy the iPhoto library into the "Shared" folder
    - copy the iPhoto library into the "new" user's Picture folder
    Because I didn't want two copies of that library, I then deleted it from the "first" user's Pictures folder. I assume iPhoto will just create a new one, which in my case will remain empty because that user doesn't use iPhoto.

  • One address book library for multiple users on notebook

    Good morning! I have been searching the forums but only find solutions if you are running OS X Server. I just bought a MacBook Pro running Leopard and my wife and I have separate accounts so we can keep our iTunes libraries, etc separate. I was able to successfully share an iPhoto library and now want to do that with Address Book. Any tips on how?

    I am new to the Mac and looking for the same solution of sharing the address book without using a mobile me account nor any other type of server. I have been searching the forums and have not found a solution for a very simple problem.
    Can anyone tell me how to share the address book so my wife and I see the same exact address book and both have permission to make changes?
    iPhoto was easy to share by moving my iPhoto library to the "Shared" users folder. I allowed read and write access to the iPhoto Library for both users, but my wife's account does get an error when it tries to save. It mentions that some recent changes may be lost. I double checked and my wife's account does have read and write privileges.
    Perhaps this is what eeperman meant by limited function.

  • Sharing the same library with two users

    Hi,
    I want to share my iTunes library with another user on our iMac.
    I followed the steps as discribed in iTunes: How to share music between different user accounts on a single computer but this is not working.
    The folder is made public, and when I browse in finder al movies and music files can be found.
    Does someone have any tips on sorting this one out?
    Many thanks,
    Timo

    Correct, iTunes does not add files automatically.  The point of the Shared folder is so they can be read by another user and get around file permissions issues of a specific user account, but iTunes will not add them to another user's library.
    Things may start to get complicated at this point.  When your wife adds one of those files to her library iTunes will want to make a copy of the file in her media folder.  I think you can get around this by using preferences to set her media folder to be the shared media folder the way you did for your library.  Old material will not be relocated unless she chooses to "organize" her media to this location too.  That's okay for now, but you will be back here with questions when the day comes you decide you want to relocate all your iTunes things to an external drive.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660 More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html Where are my iTunes files located? - http://support.apple.com/kb/ht1391 iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/kb/ht3847

Maybe you are looking for

  • Why is Indesign CS6 not getting an update for retina?

    On several websites I've read al lot of programs will get an update, like Photoshop, Illustrator etc. Why is Indesign excluded?

  • Packaged PDF only showing first document (cover page)

    I've produced a set of Ebooks which are made of Chapters and I've saved them under the Package PDF feature. My client reports that some customers are saying that they can only see the first page of the PDF which is the cover, and can't see the remain

  • I can't open .pdf files online

    I've been struggling with this problem for more than a week now.  I give up.  Please help.  I only see a white screen with a black x box top left corner.

  • Column Name is not appear

    Hi Experts, I have using this query for generate XML File through Store Procedure Store Procedure Runing Succesful. For using below query Execute whole Store Procedure Problem Path is Generate but  Coloumn Name is not appear in it. exec [dbo].[ICR_Rp

  • Export Pro CS3 v 6.0

    I wonder if someone can help me. I have been an occasional user of Premiere for about 8 years for compiling animations from tif sequences from Autodesk 3dsMax, nothing too complicated just adding some transitions and titles and exporting to avi using