<?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 Using QRS to add a user to a stream in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891325#M4124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you can help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QRS API calls to import users, create streams, import, publish and reload apps - most of which has been pretty logical and has been achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm struggling how to link the user to the stream?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume the &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.6666669845581px;"&gt;{appendPrivileges}&lt;/SPAN&gt; parameters has to be used in some way, but I'm not sure in which command you utilise that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be adding the users when I create the stream, as part of the /qrs/add/streamname command?&lt;/P&gt;&lt;P&gt;Should I add the stream, then grab the ID of the stream and associate the users - if so, what command should I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there another command that I should be looking at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has some examples that they would be willing to share to demonstrate how to achieve this, it would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2015 14:55:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-16T14:55:52Z</dc:date>
    <item>
      <title>Using QRS to add a user to a stream</title>
      <link>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891325#M4124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you can help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QRS API calls to import users, create streams, import, publish and reload apps - most of which has been pretty logical and has been achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm struggling how to link the user to the stream?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume the &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.6666669845581px;"&gt;{appendPrivileges}&lt;/SPAN&gt; parameters has to be used in some way, but I'm not sure in which command you utilise that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be adding the users when I create the stream, as part of the /qrs/add/streamname command?&lt;/P&gt;&lt;P&gt;Should I add the stream, then grab the ID of the stream and associate the users - if so, what command should I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there another command that I should be looking at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has some examples that they would be willing to share to demonstrate how to achieve this, it would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 14:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891325#M4124</guid>
      <dc:creator />
      <dc:date>2015-07-16T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using QRS to add a user to a stream</title>
      <link>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891326#M4125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You create the stream first, then add a security rule to allow certain users certain access to the stream using POST to /qrs/systemrule. For example, the following system rule grants all users that belong to "YOUR-DIR" user directory the Read and Publish (2+32=34) rights to "YOUR-STREAM" stream with id a70ca8a5-1d59-4cc9-b5fa-6e207978dcaf. Compare this to creating security rules for the stream in QMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;{
&amp;nbsp; "category": "Security",
&amp;nbsp; "type": "Custom",
&amp;nbsp; "name": "Security rule for access to \"YOUR-STREAM\"",
&amp;nbsp; "rule": "((user.userDirectory=\"YOUR-DIR\"))",
&amp;nbsp; "resourceFilter": "Stream_a70ca8a5-1d59-4cc9-b5fa-6e207978dcaf",
&amp;nbsp; "actions": 34,
&amp;nbsp; "comment": "User conditions for stream access",
&amp;nbsp; "disabled": false,
&amp;nbsp; "ruleContext": 0
}
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "actions" property should be a sum of the values of the actions you want the rule to allow based on the following definitions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;None&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Create&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Read&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Update&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Delete&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Export&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Publish&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ChangeOwner &lt;/TD&gt;&lt;TD&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ChangeRole&lt;/TD&gt;&lt;TD&gt;128&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ExportData&lt;/TD&gt;&lt;TD&gt;256&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "ruleContext" property should be one of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;BothQlikSenseAndQMC &lt;/TD&gt;&lt;TD&gt;0 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;QlikSenseOnly&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;QMCOnly&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mattias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 05:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891326#M4125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-06T05:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using QRS to add a user to a stream</title>
      <link>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891327#M4126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Mattis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 13:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Using-QRS-to-add-a-user-to-a-stream/m-p/891327#M4126</guid>
      <dc:creator>prahladind9</dc:creator>
      <dc:date>2016-02-29T13:22:45Z</dc:date>
    </item>
  </channel>
</rss>

