<?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 Re: How can I use Context variables through REST API ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-context-variables-through-rest-api/m-p/318467#M5468</link>
    <description>&lt;P&gt;I did not manage to solve the context part of the request nevertheless there is another way for my specific needs : context enrichers.&lt;/P&gt;
&lt;P&gt;For instance, I need to have the children of a document with their ACLs :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/site/automation/Document.GetChildren
X-NXContext-Category: acls

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns with each entry the context parameters&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"contextParameters": {
                "acls": [
                    {
                        "name": "local",
                        "ace": [
                            {
                                "username": "ubx:SGBm:Chantier catalogue",
                                "permission": "ReadWrite",
                                "granted": true
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It also works with straght REST calls such as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;
/api/v1/id/1f9e3219-d901-4efb-9111-d5d479016fee
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Apr 2016 08:28:49 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2016-04-06T08:28:49Z</dc:date>
    <item>
      <title>How can I use Context variables through REST API ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-context-variables-through-rest-api/m-p/318466#M5467</link>
      <description>&lt;P&gt;I would like to obtain the users and groups having the manage rights on a document.&lt;/P&gt;
&lt;P&gt;I call Document.GetUsersAndGroups (v6.0, seems it has been renamed since) that holds a "variable name" param that is supposed to set the so called context variable. How can I get this variable back to the client through the REST API ?&lt;/P&gt;
&lt;P&gt;REST calls do hold a "context" variable, but it seems it is supposed to set some context variables not to retrieve them.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-context-variables-through-rest-api/m-p/318466#M5467</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-04-05T13:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Context variables through REST API ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-context-variables-through-rest-api/m-p/318467#M5468</link>
      <description>&lt;P&gt;I did not manage to solve the context part of the request nevertheless there is another way for my specific needs : context enrichers.&lt;/P&gt;
&lt;P&gt;For instance, I need to have the children of a document with their ACLs :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/site/automation/Document.GetChildren
X-NXContext-Category: acls

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns with each entry the context parameters&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"contextParameters": {
                "acls": [
                    {
                        "name": "local",
                        "ace": [
                            {
                                "username": "ubx:SGBm:Chantier catalogue",
                                "permission": "ReadWrite",
                                "granted": true
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It also works with straght REST calls such as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;
/api/v1/id/1f9e3219-d901-4efb-9111-d5d479016fee
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2016 08:28:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-context-variables-through-rest-api/m-p/318467#M5468</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-04-06T08:28:49Z</dc:date>
    </item>
  </channel>
</rss>

