Sharepoint 2013 delivers documents through IIS too good! Need to restrict by logged in user

I have a Sharepoint 2013 app that lets external users (https://) pull data from SQL to create links on the page that the user can click on to get documents to pop-up in the browser so they can view/save them.  The page sends the user's ID as a parameter
and the stored proc uses that to return only the documents that user is allowed to see.  Took forever to figure out... looks great... my employer is going to be impressed and save money... yada, yada yada!  Problem is:  If you knew the name
of a directory on the mapped location and knew the filename (somehow), and you had a login that got you to the site, you could successfully put that address in your address bar and the document would come up!  That's a bad thing!  I need to only
let users see documents they have access to.
I have been playing with the app pool settings and advanced settings for the sub-site, but it still lets me pull items that the logged-in user doesn't have permissions on the server to get to.  I haven't been able to prove it, but I suspect that IIS
is sending another login credential to the directory to retrieve the file... something like "admin" or something that can have wider access.
Here is my setup:  I have a directory on another server that is mapped to the Sharepoint Server box.  I have a Virtual Directory that points to that mapped drive.  My Sharepoint Page is on a site of its own and is called with the URL "https://reportcenter.<company
name>.com".  There is only one page on the site.  When the page opens it provides links to documents on the Virtual Directory.  When you click on any of them the files appear in the browser just fine.  Sharepoint is running on a
Windows 2012 R2 Standard OS.  The test user I am using is "Client1" and they are a member of the "SP_Clients" group which is not a member of anything else in Active Directory.  In the file directory I went to the Share list and
made sure my test user and the SP_Clients group is not in the list... if the system tried to use Client1 there is no way they should get access.
Any thoughts on what I can do to stop Clients from getting to files they shouldn't be?

Thank you for your question and reply.
No, the identity is not passed as a URL property.  The way it works is that SP verifies the user and sends them to the default page after they sign-in.  Once there, the page evaluates the UserID value and that values is passed to a stored procedure
as a parameter.  The user can't get to the page unless they are verified by SP, they can't somehow go around this. 
Now, once the page loads they click on one of files they wish to see (a link on the page that was created from the results of the stored procedure call).  The link points to a virtual directory setup in IIS that points to a mapped drive where the files
are located.  The security on the files is set on the directories in their actual location.  I just need SP to pass the user's ID to the file directory and check the sharing rights on the file to see if this user has rights to get it.  It seems
like SP is passing some other credential (probably SP_Admin, or Admin or something) which has the ability to read the file and therefore pass it back to the screen.
I can't put the documents in SharePoint... they have to be in a file directory. The reason is that we have an elaborate program that runs every month to create these files and places them in the correct directories.  Somehow changing that application
to create the files and place them programmatically in a SharePoint directory is beyond the scope of the project.  Under the circumstances, it would be much simpler to just provide the user a list of the documents they have access to and have them click
on a link on a page and have the document appear in their browser.  Everything actually works, but I just have this last piece where SP is not 'telling' the file directory the UserID of the logged in user and therefore all the documents are available.
All that needs to be done, is to make sure the userID is passed to the file directory so it can be checked against the security there to see if the user can have the file or not.
I hope that makes sense.  I look forward to hearing back from you with your thoughts on this and how this can be accomplished.
Thanks,
Scott

Similar Messages

  • Sharepoint 2013 Open document in client application

    Hi,
    I have a sharepoint 2013 server which has word documents stored in a document library. I am able to open the documents when i click the url from sharepoint site. I have been trying to open those word documents from an angular js application using javascript
    but somehow it is not working for me. Can anyone provide any reference how to open word document for editing in word directly?
    The javascript code i am using is -
    function(docUrl){
    var spObj = new ActiveXObject("SharePoint.OpenDocuments.3");
     spObj.EditDocument(docUrl, 'SharePoint.OpenDocuments');

    Hi,
    How about modifying the code like this:
    function editDoc(docUrl)
    var spObj = new ActiveXObject("SharePoint.OpenDocuments.3");
    spObj.EditDocument(docUrl, 'SharePoint.OpenDocuments');
    In JavaScript, a function should be defined in this way:
    function function_Name(parameter)
    // TO DO LIST
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Integrating OneNote with Sharepoint 2013 - Custom document template, Change Content type, Checkout settings

    My client is migrating to SharePoint 2013 and the team uses OneNote Task list to track the project checklist. While I am successful extending the document template to support OneNote, still have some mysteries to solve as listed below:
    I am exploring Sharepoint 2013 and have tried to explain my problem clearly. If the information provided below is not clear enoug, let me know.
    1. Client has defined custom content type for all the documents in a library. I noticed OneNote comes with a Content type as "Folder". Is it possible to edit / modify the OneNote metadata to accommodate the predefined content types?
    2. In a library, I would like to defined multiple OneNote templates - Meeting, Task List, etc. I followed this article to create OneNote template for a library. Is is possible to edit the template and have "Meeting template" as default?
    3. A library can have multiple document types - word, excel, presentation, OneNote. In order for OneNote sync to work, below settings are mandatory (correct me if wrong):
            a. Checkout required should be set to "No"
            b. No versioning should be set
    My client's governance rule states "Checkout" is mandatory. How can I have a library to support OneNote with Checkout option enabled.
    Thanks in advance!

    Hi TMUser,
    regarding your questions:
    1. One note is based on folder not content type, so by design it is different items. but i heard you can have a look up for this, you may try to change my onenote notebook folder content type so that it allows for additional metadata columns. this way, the
    onenone notebook can be handled just like other office documents. for more detail you may try from this example: http://www.sharepointcowbell.com/2013/01/onenote-and-metadata-in-sharepointpart.html
    2. for onenote products, you may ask at onenote forum for more detail, http://support.microsoft.com/ask-community/office/onenote-2013/,
    we can help for general discussion regarding this. you may take a look at this article, it mentioned about set template as default: http://blogs.msdn.com/b/onenotetips/archive/2008/05/21/templates-in-onenote.aspx
    3. for this question, you may check this kb, http://support.microsoft.com/kb/2675731/en-us, i
    think it is by design, because onenote and other office are different, onenote is use shared, if we put checked out, then it will be set the limitation to only exclusive user.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Sharepoint 2013 Upload documents error

    I have users in Europe that are unable to upload their documents to Sharepoint, we hare just going LIVE with Sharepoint and have come across this issue, any help would be appriciated.
    [Forced due to logging gap, cached @ 02/14/2014 09:11:11.46, Original Level: Verbose] No data was found on the incoming client request 
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x2EC8 SharePoint Foundation          Monitoring                   
     nasq Medium   Entering monitored scope (Timer Job job-timer-locks). Parent No 78936543-e4ec-46d1-9fa4-eb2e7f0314d7
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x2EC8 SharePoint Foundation          Logging
    Correlation Data       xmnv Medium   Name=Timer Job job-timer-locks 6c1d749c-98f4-c091-4b50-af9d33019692
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x31BC SharePoint Foundation          Monitoring                   
     nasq Medium   Entering monitored scope (Timer Job MySite-Instantiation-Interactive-Request-Queue). Parent No f6d5da03-0759-484f-8dbf-35e450f84783
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x31BC SharePoint Foundation          Logging
    Correlation Data       xmnv Medium   Name=Timer Job MySite-Instantiation-Interactive-Request-Queue 6c1d749c-98f4-c091-4b50-a1097818c997
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x31BC SharePoint Portal Server       Personal Site Instantiation  
     aj58q Medium   <LogTimerJobInstance> Starting timer My Site Instantiation Interactive Request Queue (e94a6caa-b0f5-4897-b489-585ca50c7803) for web application: SP-MySite.hosting.scottwilson.com. Function: MySiteInstantiationJob:Execute 6c1d749c-98f4-c091-4b50-a1097818c997
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x31BC SharePoint Portal Server       Personal Site Instantiation  
     aj58r Medium   <LogTimerJobInstance> Finishing on timer My Site Instantiation Interactive Request Queue (e94a6caa-b0f5-4897-b489-585ca50c7803) for web application: SP-MySite.hosting.scottwilson.com.  Function: MySiteInstantiationJob:Execute 6c1d749c-98f4-c091-4b50-a1097818c997
    02/14/2014 09:11:11.94  OWSTIMER.EXE (0x1968)                    0x31BC SharePoint Foundation          Monitoring                   
     b4ly Medium   Leaving Monitored Scope (Timer Job MySite-Instantiation-Interactive-Request-Queue). Execution Time=5.7581 6c1d749c-98f4-c091-4b50-a1097818c997
    02/14/2014 09:11:11.96  w3wp.exe (0x3860)                        0x45E8 SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Render Ribbon.). Parent SharePointForm Control Render 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:11.96  w3wp.exe (0x3860)                        0x45E8 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Render Ribbon.). Execution Time=3.7351 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:11.96  w3wp.exe (0x3860)                        0x45E8 SharePoint Server Search       Query                        
     dn4s High     FetchDataFromURL start at(outside if): 1 param: start 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:12.00  w3wp.exe (0x3860)                        0x45E8 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http:///SitePages/Home.aspx?AjaxDelta=1&isStartPlt1=1392369075368)).
    Execution Time=545.3983 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:12.02  w3wp.exe (0x3860)                        0x1B68 SharePoint Foundation        
     Request Management             aeboc High     [Forced due to logging gap, cached @ 02/14/2014 09:11:11.46, Original Level: Verbose] No data was found on the incoming
    client request 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:12.02  w3wp.exe (0x3860)                        0x1B68 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (SPRoutingReverseProxy Get Response). Execution Time=554.6085 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:12.02  w3wp.exe (0x3860)                        0x2090 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http:///SitePages/Home.aspx?AjaxDelta=1&isStartPlt1=1392369075368)).
    Execution Time=561.8352 6c1d749c-48d6-c091-4b50-a738b7f35b33
    02/14/2014 09:11:12.05  OWSTIMER.EXE (0x1968)                    0x2EC8 SharePoint Foundation          Monitoring                   
     b4ly Medium   Leaving Monitored Scope (Timer Job job-timer-locks). Execution Time=106.8584 6c1d749c-98f4-c091-4b50-af9d33019692
    02/14/2014 09:11:12.14  w3wp.exe (0x31D8)                        0x3928 SharePoint Server Search       Query                        
     ac3iq High     Ims::EndPoints: old: net.tcp://BA-SHA-001/EA323E/QueryProcessingComponent1/ImsQueryInternal;, new: net.tcp://BA-SHA-001/EA323E/QueryProcessingComponent1/ImsQueryInternal; 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Projects - SharePointServerSearch(SP-SearchService-PRD_0_Portal_Content)\Transactions
    Completed. instanceHandle: 3. 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Projects - SharePointServerSearch(SP-SearchService-PRD_0_Portal_Content)\Transactions
    In Progress. instanceHandle: 3. 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Projects - SharePointServerSearch(SP-SearchService-PRD_0_Portal_Content)\Transactions
    in filters. instanceHandle: 3. 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Projects - SharePointServerSearch(SP-SearchService-PRD_0_Portal_Content)\Transactions
    Started. instanceHandle: 3. 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Projects - SharePointServerSearch(SP-SearchService-PRD_0_Portal_Content)\Transactions
    Delayed. instanceHandle: 3. 
    02/14/2014 09:11:13.06  w3wp.exe (0x3860)                        0x3FDC SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Request (POST:http://_layouts/15/inplview.aspx?List={52D82E91-4033-4877-B596-83F8711AC2ED}&View={91DA3981-73EA-4FB8-A4A2-A8231E6F1AB1}&ViewCount=15&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView)).
    Parent No 
    02/14/2014 09:11:13.06  w3wp.exe (0x3860)                        0x3FDC SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (POST:http:///_layouts/15/inplview.aspx?List={52D82E91-4033-4877-B596-83F8711AC2ED}&View={91DA3981-73EA-4FB8-A4A2-A8231E6F1AB1}&ViewCount=15&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView) 6d1d749c-d83a-c091-4b50-ad3a9739452b
    02/14/2014 09:11:13.06  w3wp.exe (0x3860)                        0x3FDC SharePoint Foundation        
     Request Management             ai2q3 High     Reached maximum number of failed machines based on ping results for this routing group 6d1d749c-d83a-c091-4b50-ad3a9739452b
    02/14/2014 09:11:13.06  w3wp.exe (0x3860)                        0x3FDC SharePoint Foundation        
     Request Management             adc7u Medium   Mapping URI from 'http:///_layouts/15/inplview.aspx?List={52D82E91-4033-4877-B596-83F8711AC2ED}&View={91DA3981-73EA-4FB8-A4A2-A8231E6F1AB1}&ViewCount=15&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView'
    to 'http://BA-SHA-001/Projects/Spain/Bilbao/SP-BIL-13002/_layouts/15/inplview.aspx?List=%7B52D82E91-4033-4877-B596-83F8711AC2ED%7D&View=%7B91DA3981-73EA-4FB8-A4A2-A8231E6F1AB1%7D&ViewCount=15&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView' 6d1d749c-d83a-c091-4b50-ad3a9739452b
    02/14/2014 09:11:13.06  w3wp.exe (0x3860)                        0x26B4 SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Request (POST:http:///_layouts/15/inplview.aspx?List=%7B52D82E91-4033-4877-B596-83F8711AC2ED%7D&View=%7B91DA3981-73EA-4FB8-A4A2-A8231E6F1AB1%7D&ViewCount=15&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView)).
    Parent No 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Content Plugin - SharePointServerSearch(a37d97d0-48e7-4b6f-a8aa-7c342d7f1f9c-crawl-0
    -Regular Crawl)\Items Ready. instanceHandle: 4. 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Content Plugin - SharePointServerSearch(a37d97d0-48e7-4b6f-a8aa-7c342d7f1f9c-crawl-0
    -Continuous Crawl)\Items Ready. instanceHandle: 5. 
    02/14/2014 09:11:13.06  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Content Plugin - SharePointServerSearch(a37d97d0-48e7-4b6f-a8aa-7c342d7f1f9c-crawl-0
    -Regular Crawl)\Items Submitted. instanceHandle: 4. 
    02/14/2014 09:11:13.08  mssearch.exe (0x0BEC)                    0x1F4C SharePoint Server            
     Unified Logging Service        9saa Unexpected OpenQuery Failed with status ID: 0x800007d0. QueryPath: \Search Gatherer Content Plugin - SharePointServerSearch(a37d97d0-48e7-4b6f-a8aa-7c342d7f1f9c-crawl-0
    -Continuous Crawl)\Items Submitted. instanceHandle: 5. 
    02/14/2014 09:11:13.08  w3wp.exe (0x3860)                        0x26B4 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (POST:http:///_layouts/15/inplview.aspx?List=%7B52D82E91-4033-4877-B596-83F8711AC2ED%7D&View=%7B91DA3981-73EA-4FB8-A4A2-A8231E6F1AB1%7D&ViewCount=15&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView) 6d1d749c-d83a-c091-4b50-ad3a9739452b
    02/14/2014 09:11:13.08  w3wp.exe (0x3860)                        0x26B4 SharePoint Foundation        
     Authentication Authorization   agb9s Medium   Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|domain\user, ClaimsCount=52 6d1d749c-d83a-c091-4b50-ad3a9739452b

    Hi CliveWightman,
    i checked the logs, and seems from the logs it is not when upload happens, but when create new folder. please let me know if it is true.
    based from the log: "list doesn't exist", this should be indicate a server side error, but from you previous testing, it looks like a client side issue (IE8). please help to clarify if should this is a server side or client side.
    if should this is a client side, then only at specific client machine or specific application that run in the client machine only that able to reproduce the issue, you can try also to install higher IE, such as IE 9 or 10 to try if should this is client
    issue.
    Please use below command to export the schema of good library and problematic one. Make a comparison between 2 schemas
    $site=get-spsite URL
    $web=$site.openweb(“sitename”)
    $list=$web.lists[“ListName”]
    $list.SchemaXml >>C:\1.xml
    and please check IE add-ons, verify if "STSUPLD.UPLOADCTL" is enabled.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SharePoint 2013 - In document library, an unexpected error has occurred when a user clicks on ellipsis then "EDIT"

    Just as the title infers, I have a user who is experiencing an unexpected error when he clicks on "EDIT" after clicking on the ellipsis. Document in the Document library is an MS Word file.

    Hi,
    According to your post, my understanding is that an unexpected error has occurred when a user clicks on ellipsis then "EDIT".
    Please make sure he has the edit permission.
    Please make sure the Office 2013 is installed correctly on his computer.
    In addition, I recommend to use another brower to check whether it works.
    If so and the error message persists, please check the SharePoint ULS log to find more information about this error, the ULS
    log file is in the location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
    More information:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Sharepoint 2013 Excel document Browser issue

    Hi ,
    Office documents opened via a hyperlink from SharePoint document libraries may be missing the Server Message Bar
    IE it is not working.  Chrome it is working fine.
    Refer the below screen shot. 
    IE : 
    Chrome : 
    I am using SP 2013  with SP1  My IE browser is 11 .
    Please let me know how to fix this issue. 
    Thanks,
    Amar
    Amar

    Hi Amar,
    According to your descritpion, my understanding is that the Server Message bar was missing when you open documents with IE 11, and it worked well with Chrome.
    Please test with IE 10. If it can work, please use IE 10 mode in IE 11.
    Please add your site into IE Trusted Sites, compare the rsult.
    Also, add your site into Compatibility view.
    Best Regards,
    Wendy
    Forum Support
    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]
    Wendy Li
    TechNet Community Support

  • SharePoint 2013 library document synchronization

    Hi All,
    I need to put exported documents put in to a network path (\\servername\folder) to be automatically pushed to a SharePoint library folder. Will there be a tools to do this?
    Many Thanks,
    sudesh withanage

    You must build simple service in C#. I dont think there is completed this type of tools.
    Here is some code. This is part of my service that synchronize few columns from library with SQLServer. You must synchronize folder with Library.
    private static void DoSync()
    List<DataModel> ABWStringList = new List<DataModel>();
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite SitePw = new SPSite("https://pw.call.local/"))
    using (SPWeb WebInner = SitePw.OpenWeb("/BW/"))
    SPList ABWList = WebInner.Lists["MyLibraryName"];
    foreach (SPListItem item in ABWList.Items)
    ABWStringList.Add(new DataModel()
    cell = item.Properties["col1"] != null ? item.Properties["col1"].ToString() : null,
    name = item.DisplayName,
    unit = item.Properties["col2"] != null ? item.Properties["col1"].ToString() : null,
    using (DAL db = new DAL())
    try
    db.DBInsert(ABWStringList, 1);
    catch
    Console.WriteLine("error");

  • SharePoint 2013 cannot view PDF documents in mobile browser with office web apps

    Hi,
    I'm receiving the following error when viewing SharePoint 2013 PDF documents in a mobile browser after clicking on the filename:
    "Viewing of .pdf files has been disabled in Microsoft Word Mobile Viewer. Please get in touch with your helpdesk."
    My Question
    Is viewing PDF documents in mobile browsers with Office Web Apps SP1 actually supported?  If so, how can I enable it?  I've already have pdf viewing working in non-mobile browsers. Word documents open just fine on mobile browsers too.
    I'm getting conflicting answers for pdf mobile viewing support from various sources:
    You've got Microsoft toting that they've added in PDF viewing on any device for Office Web Apps
    http://blogs.office.com/2013/07/03/pdfs-in-the-word-web-app/
    A MS support person saying saying it is not supported
    http://blogs.technet.com/b/office_web_apps_server_2013_support_blog/archive/2013/12/31/enabling-pdf-previews-in-document-libraries-with-office-web-apps-2013-in-sharepoint-2013-open-link-does-not-work-from-preview.aspx
    Another person implying that it should work because you can disable pdf browsing for mobile browsers only
    http://blogs.technet.com/b/office_resource_kit/archive/2013/07/24/control-whether-pdfs-open-in-word-web-app-or-the-default-pdf-reader.aspx
    What I've tried
    When I started looking into this there was a mobile WOPI entry:
    Application     : WordPdf
    Extension       : PDF
    ProgId          :
    Action          : mobileView
    IsDefaultAction : False
    ServerName      : 20SP8
    WopiZone        : internal-http
    I tried experimenting with tweaking this binding by changing the DefaultAction to true, and even removing it altogether via:
    Get-SPWopiBinding -Action "MobileView" -Application "WordPDF" | Remove-SPWopiBinding -Confirm:$false
    But I still get the same message.
    I removed all the WordPdf bindings and re-added them via:
    New-SPWOPIBinding –ServerName "<myserver>" –Application "WordPDF" -AllowHTTP
    No dice.  In fact the mobileview binding doesn't even come back... but I guess that is a different issue altogether.
    Version
    SharePoint 2013 (SP1)
    Office Web Apps Server (SP1)
    Farm Setup
    Internal facing only
    2 front end servers, 1 app server, 1 office web apps server

    I think the PDF support, if it exists, in only in Office 365. Always remember that the Office 365 and on premises versions will never be in sync. On premise is updated using periodic service packs and Office 365 has continuous updates. (I've heard every
    10 days.)
    In my Office 365 / IE 10 tests, the PDFs open in the browser's default PDF viewer, in my case FoxIt Reader. So I can't prove one way or the other about support in Office Web Apps.
    Mike Smith TechTrainingNotes.blogspot.com

  • Cannot Open Previous Document Versions SharePoint 2013

    Having a issue where opening a previous document version is not working in SharePoint 2013.
    Have tried:
    Multiple document librarys/documents (new ones too)
    Multiple Site Collections
    Multiple Web Applications
    Multiple User Accounts
    Multiple Computers / Versions of Word
    Multiple Users
    It makes no difference.
    Cannot find anything in the logs, word just says:
    Could not open 'https://site.domain.com/site/site/_vti_history/2/Library/test.docx'
    Have tried with a versioned PDF document and it downloads OK.
    InfoPath MVP | SharePoint 2010 MCITP & MCPD | Office 365 MCITP |
    CUBE4 SharePoint Blog | InfoPathTips.com

    Hi,
    You mentioned this works fine externally.  Internally are the sites HTTPS or HTTP? 
    If it is HTTP, what does the AAM map look like?  If it’s HTTPS, where does SSL terminate on the NLB/TMG or on the servers?
    You mentioned you tried on multiple web applications, did you try and create a brand new one using just a server name as the URL? 
    If so what was the behavior?
    You should be able to find the error message in the ULS logs. 
    Check all the servers, maybe it’s an unexpected server.  Also make sure that verbose logging is enabled.
    Regards, Savoeurn Va Microsoft Online Community Support

  • Migrating from Moss 2007 to SharePoint 2013

    I am reaching out here as we require some inputs around migrating the SharePoint based application from MOSS 2007 to 2013.Please find more details from below
    Requirement:
    Migrating SharePoint site collection (which contains just 1 Top level site and 2 libraries with in it and no item level/library level permissions exists) which is on MOSS 2007 with size of 500GB to SharePoint 2013, hence we like to know your inputs in related
    to this
    Note:
    1) The site collection has its own separate content database
    2) There are nearly 200 thousand documents where the document with higher version is 90
    3) The documents are stored in the libraries with up to third level of folder structure
    4) The site collection is created based on custom site definition (created using visual studio)
    Few things that I like to mention/ask here
    a) Having 500GB data in one single content database inj the MOSS 2007 environment does it impacts the site performance?
    b) Migrating the site collection as is  onto single content database (all 500 GB into one content database) into destination SharePoint 2013, does it will be a good practice? Hope SharePoint 2013 content database limit is 200 GB, hence moving 500GB
    as is into one database will it be good practice?
    c) Does database attach and detach works for the databases which are of size 500GB?
    d) Can we do database attach and detach directly from MOSS 2007 to directly onto SharePoint 2013, without hopping onto SharePoint 2010 in between and then later to SharePoint 2013?
    e) If moving 500GB data into one content database will not be a good approach, can we split it onto multiple databases?
    f) If database attach and detach doesn’t help for databases which are of size 500GB, should we go for any tool based approach? If yes, which tool does best fit?

    a) Having 500GB data in one single content database inj the MOSS 2007 environment does it impacts
    the site performance?
    Inder: Yes, it will impact site performance at large extended, recommended is 200 gb only. Check it IO of your disk to analyze performance issue
    b) Migrating the site collection as is  onto single content database (all 500 GB into one content
    database) into destination SharePoint 2013, does it will be a good practice? Hope SharePoint 2013 content database limit is 200 GB, hence moving 500GB as is into one database will it be good practice?
    Inder: 
    Content database size (all usage scenarios)
    4 TB per content database
    Supported
    Content databases of up to 4 TB are supported when the following requirements are met:
    Disk sub-system performance of 0.25 IOPs per GB. 2 IOPs per GB is recommended for optimal performance.
    You must have developed plans for high availability, disaster recovery, future capacity, and performance testing.
    http://technet.microsoft.com/en-us/library/cc262787%28v=office.15%29.aspx#ContentDB
    c) Does database attach and detach works for the databases which are of size 500GB?
    Inder: Yes it does work
    d) Can we do database attach and detach directly from MOSS 2007 to directly onto SharePoint 2013, without
    hopping onto SharePoint 2010 in between and then later to SharePoint 2013?
    Inder: No, you need to pass through 2010 and then 2013
    e) If moving 500GB data into one content database will not be a good approach, can we split it onto
    multiple databases?
    Inder: you can go with 500 gb
    f) If database attach and detach doesn’t help for databases which are of size 500GB, should we go for
    any tool based approach? If yes, which tool does best fit
    Inder: Below are few tools you can try
    http://www.metalogix.com/Products/Content-Matrix.aspx
    http://en.share-gate.com/
    http://www.avepoint.com/sharepoint-migration-tools/
    http://www.quest.com/sharepoint/migration.aspx
    If this helped you resolve your issue, please mark it Answered

  • Sharepoint 2013 : Server was unable to process request. --- Site is not configured for Claims Forms Authentication.

    In our java web application trying  establish the connection for sharePoint 2013
    using  Windows claims authentication (NTLM ), I am getting error message "Server was unable to process request. ---> Site is not configured for Claims Forms Authentication". But In the Sharepoint 2013 our Site is is configured for Windows
    claims only.
    In the Sharepoint 2013 server in the IIS manager settings for authentication it is  enabled for both Windows claims and Forms authentication,
    but if I disable Forms authentication that I will be able to connect it through my application but with the direct access i.e., by running the URL in the browser I am not able to connect getting error message "sorry this site has not been shared with
    you" in the browser  Kindly help me on this.

    Hi,
    This issue is always caused that you had missed FBA configuration in web config of your web application.
    You can configure the FBA authentication then check whether it works.
    http://technet.microsoft.com/en-us/library/ee806890(v=office.15).aspx
    http://chrisbarba.com/2013/07/16/sharepoint-2013-forms-based-authentication-fba/
    more reference:
    http://stackoverflow.com/questions/5686378/sharepoint-2010-claim-base-authentication-error
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2d82dcd4-0e57-4de5-81bc-60ffc3cb9a9f/sharepoint-2010-claim-authentication-and-authenticationasmx?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • SharePoint 2013 Site Mailboxes behind UAG

    Hello,
    I tried to connect to my SharePoint 2013 site mailbox through UAG. From internal access, it works fine.
    From external access, I was connected to the SharePoint Site. I clicked on the Mailbox link I have a OWA form based authentication. After wrote my credential, I had an error page "404 - File or Directory not found". I clicked on back button an
    reauthenticate myself, I received a message "Logon error. Access to the page was made from an unauthorized URL.
    If you were confronted to a same error, how did you corrected this one ?
    Thank you.
    Philippe
    philgood031

    Hi Luo,
    Thank you for your answer. Below replies to yours :
    1. Yes we have activated the form based authentication on UAG. We used based authentication on Outlook Web Access. Connections to Webmail works fine.
    2. We used external URL for Webmail, but for Office Web Apps reasons we have added another internal DNS zone with the same domain name than external domain. We have added Hosts Record.
    3. On local network, we can have access to Site Mailbox in Outlook, I have never tested this from external network. I have added "send as" rights for the user on the shared mailbox and the full rights on the shared mailbox.
    Summary :
    Our client have installed SharePoint 2013, Office Web Apps 2013 and Exchange 2013 SP1. He wants to have an external access to Office documents and also to Site Mailboxes on SharePoint. Office Web Apps works fine inside and outside. Site Mailboxes works fine
    Inside but not outside. They used a domain name like "internal.cotonso.com" and the external domain name is "contoso.com". They called us to resolved this problem. The only Warning informations we received from the Event Viewer with
    sixteen different event id with number 67
    The description for Event ID 67 from source Microsoft Forefront UAG cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the
    local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    2xx.yyy.zzz.156
    charel
    webmail2013
    1
    OWA2013
    ExchangePub2013
    /owa/[email protected]/plt1.ashx?cId=3292ea71-4116-4f59-8957-7e3444de3883&msg=SessionDataError&tg=&MDB=abe00dfc-d231-4a90-aede-4a9b67b68c2e&sdCoId=3292ea71-4116-4f59-8957-7e3444de3883_1397656540883&fe=null&be=null&cbe=null&cver=15.0.847.32&rand=1397656541490&rpo=0&off=0&pal=0&rfe=0&PLT=uES,4,uEE,4,fS,0,dLS,0,dLE,0,cS,0,cE,0,reqS,2,resS,2,resE,5,domL,12,pE,631,now,632&lbv=15.0.847.32&icv=15.0.847.32&iacr=15.0.847.32&lcver=15.0.847.32
    Default rule
    POST
    Thank you.
    Philippe.
    philgood031

  • How to use OneDrive for Business mobile app with SharePoint 2013 on-premise?

    Hi All,
    I have a SharePoint 2013 (with latest December updates) that host a dedicated personal web site for users.
    The OneDrive portal works fine and users are able to sync their files with the OneDrive client for Windows.
    Now I want to test the OneDrive for Business mobile app on Android, but there is no option to specify the "personal" portal URL.
    It asks only for domain credentials.
    Does I need to configure specific records on my public DNS to allow mobile users to sync their files?
    Thanks

    I can confirm that with iOS you can connect to your SharePoint server through the advanced options.
    But the very strange thing is that the OneDrive version for Windows Phone 8.1 is limited as the Android version.
    This has no sense.
    Why does Microsoft should limit the Business functions on its mobile operating system, and not on iOS?
    Another strange thing is that configuring my Exchange account, Windows Phone 8.1 informed me that it has connected OneDrive for business (but is a fake information).
    See attached image.
    If I open the built-in OneDrive app, it give me the option to add a OneDrive for business account, but is only for Office 365 users (like with the Android version).
    I thing that Microsoft should let at least to Windows Phone users to connect to on-premise SharePoint sites.

  • Sharepoint 2013 Setting people picker with Jquery not working in IE8

    In a SharePoint 2013 list with a people picker column labeled Name the following code works great in IE9 and IE10, however in IE8 the script shows an undefined is null or not an object error message at spPeoplePicker.AddUnresolvedUserFromEditor(true);
    FYI using jquery min 1.10.2
    Any ideas on how to resolve the issue?
    <script type="text/javascript">
    $(document).ready(function () {
    var userid = _spPageContextInfo.userId;
    //alert(userid)
    function GetCurrentUser() {
    var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")";
    var requestHeaders = { "accept" : "application/json;odata=verbose" };
    $.ajax({
    url : requestUri,
    contentType : "application/json;odata=verbose",
    headers : requestHeaders,
    success : onSuccess,
    error : onError
    function onSuccess(data, request){
    var userName = data.d.Title;
    //set following "field" as column to set in people picker
    SetUserFieldValue("Name",userName);
    function onError(error) {
    //alert(error);
    function SetUserFieldValue(fieldName, userName) {
    var controlName = fieldName;
    var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
    var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
    //comment out this field if edit form needs to be read only
    peoplePickerEditor.val(userName);
    //comment out this field if edit form needs to be read only
    spPeoplePicker.AddUnresolvedUserFromEditor(true);
    //disable the field
    spPeoplePicker.SetEnabledState(false);
    //hide the delete/remove use image from the people picker
    $('.sp-peoplepicker-delImage').css('display','none');
    GetCurrentUser();
    </script>

    Hi David,
    Below is the complete code I have used to load the current user to the people picker in SharePoint 2013.
    $(document).ready(function(){
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', LoadCurrentUser);
    function LoadCurrentUser() {
    var context = SP.ClientContext.get_current();
    var siteColl = context.get_site();
    var web = siteColl.get_rootWeb();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, SetPickersToCurrentUser), Function.createDelegate(this, LoadUserfailed));
    function LoadUserfailed() {
    alert('failed');
    function SetPickersToCurrentUser()
    var loginName = this._currentUser.get_title();
    SetPeoplePicker('Order Team', loginName);
    function SetPeoplePicker(fieldName, userAccountName) {
    var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + fieldName + "']");
    var peoplePickerEditor = peoplePickerDiv.find("[title='" + fieldName + "']");
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
    peoplePickerEditor.val(userAccountName);
    spPeoplePicker.AddUnresolvedUserFromEditor(true);
    Let me know if you have any questions. I will help you out!
    -Praveen.
    ASP.NET and SharePoint developer
    Blog: http://praveenbattula.blogspot.com
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

  • OOTB Left Navigation error in Page Layout SharePoint 2013

    I created a SharePoint 2013 master page through Design Manager in Sharepoint 2013 and created a page layout like we do trough sharepoint designer as in sharepoint 2010 steps are below
    SharePoint Designer--->Page Layouts---->New Page Layout
    now i want to insert left navigation in the page layout ,i tried to insert the following snippet in the page layout 
    <div data-name="QuickLaunch">
                                        <!--CS: Start Vertical Navigation Snippet-->
                                        <!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
    Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                                        <!--SPM:<%@Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                                        <div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
                                            <!--MS:<SharePoint:AjaxDelta ID="DeltaPlaceHolderLeftNavBar" BlockElement="true" CssClass="ms-core-navigation"
    runat="server">-->
                                                <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBar" runat="server">-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarTop" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchTop" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarDataSource" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderCalendarNavigator" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftActions" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<SharePoint:SPNavigationManager ID="QuickLaunchNavigationManager"
    runat="server" QuickLaunchControlId="v4QuickLaunchMenu" ContainedControl="QuickLaunch" EnableViewState="false">-->
                                                        <!--MS:<SharePoint:DelegateControl runat="server" ControlId="QuickLaunchDataSource">-->
                                                            <!--MS:<Template_Controls>-->
                                                                <!--MS:<PublishingNavigation:PortalSiteMapDataSource
    runat="server" ID="SiteMapDS" SiteMapProvider="CurrentNavigation" EnableViewState="false" StartFromCurrentNode="true" ShowStartingNode="false" TrimNonCurrentTypes="Heading">-->
                                                                <!--ME:</PublishingNavigation:PortalSiteMapDataSource>-->
                                                            <!--ME:</Template_Controls>-->
                                                        <!--ME:</SharePoint:DelegateControl>-->
                                                        <!--MS:<SharePoint:AspMenu ID="V4QuickLaunchMenu" runat="server"
    EnableViewState="false" DataSourceId="QuickLaunchSiteMap" UseSimpleRendering="true" Orientation="Vertical" StaticDisplayLevels="3" AdjustForShowStartingNode="true" MaximumDynamicDisplayLevels="0"
    SkipLinkText="">-->
                                                        <!--ME:</SharePoint:AspMenu>-->
                                                    <!--ME:</SharePoint:SPNavigationManager>-->
                                                    <!--MS:<SharePoint:SPNavigationManager ID="TreeViewNavigationManagerV4" runat="server"
    ContainedControl="TreeView" CssClass="ms-tv-box">-->
                                                        <!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/{0}/viewlsts.aspx"
    ID="idNavLinkSiteHierarchyV4" Text="&#60;%$Resources:wss,treeview_header%&#62;" accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;" CssClass="ms-tv-header">-->
                                                        <!--ME:</SharePoint:SPLinkButton>-->
                                                        <!--MS:<SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource">-->
                                                            <!--MS:<Template_Controls>-->
                                                                <!--MS:<SharePoint:SPHierarchyDataSourceControl
    runat="server" ID="TreeViewDataSourceV4" RootContextObject="Web" IncludeDiscussionFolders="true">-->
                                                                <!--ME:</SharePoint:SPHierarchyDataSourceControl>-->
                                                                <!--MS:<SharePoint:SPRememberScroll runat="server"
    ID="TreeViewRememberScrollV4" onscroll="javascript:_spRecordScrollPositions(this);" style="overflow: auto;">-->
                                                                    <!--MS:<SharePoint:SPTreeView
    ID="WebTreeViewV4" runat="server" ShowLines="false" DataSourceId="TreeViewDataSourceV4" ExpandDepth="0" SelectedNodeStyle-CssClass="ms-tv-selected" NodeStyle-CssClass="ms-tv-item" SkipLinkText=""
    NodeIndent="12" ExpandImageUrl="/{0}/images/tvclosed.png" ExpandImageUrlRtl="/{0}/images/tvclosedrtl.png" CollapseImageUrl="/{0}/images/tvopen.png" CollapseImageUrlRtl="/{0}/images/tvopenrtl.png" NoExpandImageUrl="/{0}/images/tvblank.gif">-->
                                                                    <!--ME:</SharePoint:SPTreeView>-->
                                                                <!--ME:</SharePoint:SPRememberScroll>-->
                                                            <!--ME:</Template_Controls>-->
                                                        <!--ME:</SharePoint:DelegateControl>-->
                                                    <!--ME:</SharePoint:SPNavigationManager>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchBottom" runat="server">-->
                                                        <hr />
                                                        <!--MS:<SharePoint:ClusteredSPLinkButton ID="idNavLinkViewAllV4"
    runat="server" Permissions="ViewFormPages" NavigateUrl="~site/{0}/viewlsts.aspx" Text="&#60;%$Resources:wss,quiklnch_allcontent_short%&#62;" accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;"
    CssClass="ms-core-listMenu-item">-->
                                                        <!--ME:</SharePoint:ClusteredSPLinkButton>-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                <!--ME:</asp:ContentPlaceHolder>-->
                                            <!--ME:</SharePoint:AjaxDelta>-->
                                        </div>
                                        <!--CE: End Vertical Navigation Snippet-->
                                    </div>
    but i get the following error when i create page through this page layout
    "Content Place holders are only allowed in master page"
    Can anyone tell me how do i insert left navigation in page layout which is created through sharepoint designer (.aspx file) but master page is created through design manager

    Hi  ,
    As the error says, you need to  add Content Place holders to Mater Page not the Page Layout.
    For  inserting  left navigation, you can add Vertical Navigation SharePoint component to the master page using Snippets  manager:
    1.
    Open the site then click design manager link from right top corner "Settings".
    2.
    Click “Edit Master Pages” link.
    3.Click your custom mater page. It will open preview page.
    4.
    Once open the preview page then click Snippets menu from top right side. It will open “Snippet Gallery” in new tab page.
    5.
    Click the Vertical Navigation menu item in “DESIGN “tab.
    6.
    In this page we can easy to configure component properties.
    After customization must click the update button then only the changes are reflected in the component snippet.
    7.
    Once click the update button the HTML code automatically generated in the “HTML snippet” box and click “Copy to Clipboard” button.
    8.
    Open the mapped network drive then open the Mater Page HTML file and paste HTML snippet where you want the navigation to show.
    Reference:
    http://www.sharepointpals.com/post/Add-snippets-in-Page-layout-using-design-manager
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for