How to get anonymous guest link "View Only" and "Edit" URL using JSOM or Search API ?

Hi,
I need to get list item anonymous guest link View Only and
Edit URLs (as shown in image below) using JSOM or SharePoint 2013
Search API.
the URL will be like this - https://<site URL>/_layouts/15/guestaccess.aspx?guestaccesstoken=yRaYGmE9n
Any one has any idea how to do achieve this?
Thanks
Shakir

Hi Shakir,
To get the anonymous guest link “View Only”, we can use SP.ObjectSharingInformation.anonymousViewLink property in sp.js.
https://msdn.microsoft.com/en-us/library/office/jj246826.aspx
To get the anonymous guest link “Edit”, we can use SP.ObjectSharingInformation.anonymousEditLink property in sp.js.
https://msdn.microsoft.com/en-us/library/office/jj246468.aspx
We can also use REST API to get the guests links:
_api/web/Lists/getbytitle('library name')/items(item id)/GetObjectSharingInformation?$expand=SharedWithUsersCollection&retrieveAnonymousLinks=true
Thanks,
Victoria
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]

Similar Messages

  • Creating anonymous guest link to images/documents programmatically Sharepoint Online O365

    I need to be able to create an anonymous guest link to images or documents programmatically using c# SharePoint web services or something similar. Does anyone know if this can be done if so how? essentially this means creating the guest access token
    programmatically ..
    If somebody know how to do his it would be much appreciated ?
    Thanks in advance 

    Hi,
    The method you posted seems to the trick it creates to anynonymus links like I was expecting. However interesting scenario has come up when I copy and paste the link in to a normal web browser (desktop or laptop) everything works as expected, but
    I when I try the link on a mobile web browser I get the prompt asking me to log in to office 365 not sure why that would be any suggestions ??

  • How to get relationship between two  views in the  reports

    How to get relationship between two  views in the  reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports

    Hi,
    Please explain your question in detail...what do you want to read ?
    If you want to know about the navigation links between the views then you can use APIs  like
    wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
    Iterate through the navigationLinkInfo from above collection and can read the other properties .
    I haven't tried the above , but it should work !!!
    Regards,Anilkumar

  • How do I enable the new "view only" setting?

    How do I enable the new "view only" for sharing in Numbers for iPhone?

    After sharing the file, you can then change the acces permissions. This should help get you there: http://help.apple.com/numbers/ipad/2.2/#/tan0bbbf4c04

  • How to get page one to animate only once in interactive pdf?

    how to get page one to animate only once in interactive pdf? I like when the document opens up in acrobat and the the page animations work but when I go to one of the pages and hit my designated home button it goes back to page one but it reloads again. As a user it would drive me crazy to have to wait for all of it to load......anyway to have that page one load once as the opening page?

    I don't think you really mean animations (unless you have a placed SWF file) because things created with the Animation panel don't work in PDF. Nonetheless, you're talking about some kind of interactivity which is set to happen On Page Load.
    So when you return to that page, of course the interactivity loads again.
    There isn't a On Page Load Once command.
    Perhaps you need to rethink why the interactivity is there. If it's important, maybe it should be triggered by a rollover or by clicking a button.

  • How to get the opportunities linked to a  BP who is logged in?

    Hi,
        How to get the opportunities linked to a BP who is logged in mean the user who is logged in?
    Regards,
    Jaya

    Hi,
    I understand the question as follows:
    You want to get a list of opportunities that are assigned to the logged in user.
    You can get the USER -> BP assignment from table HRP1001.
    Then use the standard opportunity search to get the Opportunities.
    cheers Carsten

  • How I disable my textbox at view time and Enable only when insert or edit t

    hi master
    Sir i have master detail form and i am not use toolbar i am usint my button add/edit/view/next/last and other
    sir my requirement is all textbox disable at view time enable ony edit or inserting time
    how I disable my textbox at view time and Enable only when insert or edit time.
    i use this
    if :system.form_status='change' then
    if :system.form_status='insert' then
    if :system.form_status='execute query' then
    but not right work
    please give my idea where i use what statment
    send me sample
    Aamir

    Aamir,
    Set the text item's Enabled property to False at design time. Then, using SET_ITEM_PROPERTY (see Forms Help), set to Enabled in the relevent part of the code on the WHEN-BUTTON-PRESSED triggers on your Insert and Update buttons. Similarly, disable on your Save button once the cnahges are saved etc.

  • How to get the line in the template (smartform) with out using under score

    Hi,
         How to get the line in the template (smartform) with out using under score,
         and how to print the box (line the check box - small squre box (which is used ot mark the tick by the user in front of the item).
         Please provide the valueble answer as early as possible.
    Thanks,
    Ravi

    Hi Ravi,
    Line -
    Use a SMATSTYLE for this purpose.in the smartstyle create a paragraph or character with underline atribute.Then call the smartstyle in the text.
    Search SDN with Key <b>UNDERSCORE</b>.. will get few more posts on the same.
    For Checkbox - refer link
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • Forgot icloud password, how to get it recover without any question and also alternative email becuase someone hacked my alternative email id. need password for using icloud hopefully i will get result from you as your earliest.

    forgot icloud password, how to get it recover without any question and also alternative email because someone hacked my alternative email id. need password for using icloud hopefully i will get result from you as your earliest.

    I'm sorry, but I know nothing about iCloud email. I stayed away from iCloud email and only use iCloud for limited purposes.
    But take a look at this discussion and read the response from randers4. He is one of the iCloud experts in the Apple Support Communities.
    https://discussions.apple.com/message/24358339#24358339
    If that doesn't help, you might be better off posting in here where there are other more knowledgable iCloud users.
    https://discussions.apple.com/community/icloud/icloud_on_my_ios_device

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • How to get the data of Open Opportunities and Closed Opportunities

    Hi Guys,
      i'm studying about Sales Opportunities in SAP BusinessOne.
    i'm able to get the data about Sales Opportunities(i enterd), Opportunities Report and Lost Opportunities.
    But i dont know how to get information about Open Opportunities Reports and Closed Opportunitiesn Reports.i'm unable to find even their names of tables.
    plz send a reply.................
       with regards,
    santh

    Thanq Alexey for ur Helpful Answer,
       i'm aware about execution of a query in the Query Analyzer of SQL Server.but i dont know how to move to ShowDebugInformation Menu.
       can i find it in  the SAP Business One Tool. or do i need
    to check any data base help given by B1(Ex:- REFDB2004).
        plz give answer for  this also............
      with regards,
    santh

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • How to get classification for a given material and material type in MM

    Hello Friends,
    One of my developer colleagues is struggling to find out : how to get classification for a given material and material type in MM?
    He is looking for probable table and table fields to Select from.
    I would appreciate seriously any help in this regard.
    ~Yours Sincerely

    Hi
    Below given the flow and table details for a given class and class type.
    - Table KLAH --> This contains the "Internal class no" [ for the given Class & Class type ]
    - Table KSML --> This contains the " internal character numbers " [ nothing but characteristics attached to the class ] , which can be fetched with the above fetched internal class no
    - Table AUSP --> This table contains the objects ( material ) attached to the internal characters of that class
    - Table CABNT --> This table contains the "Description" for the internal character numbers.
    - award points if this is ok

  • How to get the password of a password protected Excel Sheet using java/jxl

    Hi ,
    how to get the password of a password protected Excel Sheet using java / jxl program.
    plz any one help me .
    Ramesh P
    [email protected]

    If they've implemented the password system correctly there probably isn't a way of getting the password at all.

  • How to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK?

    I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.

    I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.

Maybe you are looking for

  • How many upgrades do I need to upgrade from 10.4.11 to get to Lion?

    I have been going through all the other posts and my head is spinning.  Some of the answers seem contradictory and confusing esp since I am not all that versed in computer stuff.  Anyway, I have a: MacBook Pro 3.1 Version 10.4.11 2.4 GHz Intel Core2D

  • Problems with mm_menu.js (drop-down menu)

    I've made a couple of sites with mm_menu.js (drop-down menu) made by Dreamweaver. It works fine in Firefox, Google Chrome. It worked fine in Internet Explorer up to version 9. In version 10 the mm_menu.js doesn't show at all, and in version 11 it doe

  • How do I get non-pixelated quality for imported image?

    I want to import a high quality image from Photoshop into Final Cut Express 4.0 and be able to watch the clip on fullscreen without loosing too much quality. The quality decreases to a very pixelated version of my image and does not look good at all.

  • Message info req??

    hi i had an req like to display an message on list 1 o f any O/P,than if user wants to go to next screen,than he have to press a button,than there shd appear a I message Want to cont',if he cilks OK,it shd display list 2,if he cancel the msg,he shd s

  • AS3 + Captivate 3

    Hi, I'm working on a project which is composed  with a core made in AS3 and animations made in captivate 3. The application seems to correctly load and display the swf files made with captivate 3 (export settings : flash player 9), but only the first