<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to Give Users Access Through the Upload API? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1867#M3</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on an app, and in my app I have the user login, which gets an alfresco ticket from the url:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http://localhost:8080/alfresco/service/api/login?u=memedude&amp;amp;pw=ilovememes‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string I receive back from this is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;TICKET_9aa49e5ff12d3cba95d62b4cd21cfc27bda4f1f3‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Then when I try to access the upload URL and pass this ticket in like this:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http://localhost:8080/alfresco/service/api/upload?alf_ticket=TICKET_9aa49e5ff12d3cba95d62b4cd21cfc27bda4f1f3‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive back a 403 forbidden. I've tried doing this the exact same way, except I login with the admin's credentials:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http://localhost:8080/alfresco/service/api/login?u=admin&amp;amp;pw=admin‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Works like a charm. I tried going into the Alfresco admin tools page, and I added the user into a group, and set a quota, and looked around. I'm still not able to get the user to pass authentication when I'm uploading the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I give these users the permissions to upload with the API,&amp;nbsp;and &lt;STRONG&gt;not&lt;/STRONG&gt; have to change the webscript to allow guests to download files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips / help would be appreciated guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 20:19:07 GMT</pubDate>
    <dc:creator>draperaj</dc:creator>
    <dc:date>2017-02-10T20:19:07Z</dc:date>
    <item>
      <title>How to Give Users Access Through the Upload API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1867#M3</link>
      <description>Hey Guys,I'm working on an app, and in my app I have the user login, which gets an alfresco ticket from the url:http://localhost:8080/alfresco/service/api/login?u=memedude&amp;amp;pw=ilovememes‍‍‍‍‍‍The string I receive back from this is:TICKET_9aa49e5ff12d3cba95d62b4cd21cfc27bda4f1f3‍‍‍‍‍‍Then when I t</description>
      <pubDate>Fri, 10 Feb 2017 20:19:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1867#M3</guid>
      <dc:creator>draperaj</dc:creator>
      <dc:date>2017-02-10T20:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Users Access Through the Upload API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1868#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of changing the upload webscript you should evaluate to write your own webscript for your specific needs.&lt;/P&gt;&lt;P&gt;Changing the default Alfresco API is not a good choice.&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:04:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1868#M4</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2017-02-13T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Users Access Through the Upload API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1869#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing that you're trying to upload to a target folder for which the user does not have write (add children) permission ?&amp;nbsp;Here's a link to the deprecated API:&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/5.0/references/RESTful-UploadUploadPost.html" title="http://docs.alfresco.com/5.0/references/RESTful-UploadUploadPost.html" rel="nofollow noopener noreferrer"&gt;File upload | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using Community, then I would recommend that you test an upgrade to the latest release and try out the new&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-6532"&gt;Alfresco 5.2 REST APIs&lt;/A&gt;&amp;nbsp;for uploading new content&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode" title="https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode" rel="nofollow noopener noreferrer"&gt;Alfresco API Explorer (Create Node)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 10:59:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-give-users-access-through-the-upload-api/m-p/1869#M5</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-02-13T10:59:34Z</dc:date>
    </item>
  </channel>
</rss>

