<?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: List user policies and actions in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301699#M111</link>
    <description>&lt;P&gt;Thanks Eddie. That makes sense!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2019 18:29:45 GMT</pubDate>
    <dc:creator>SultanMasihuddin</dc:creator>
    <dc:date>2019-12-02T18:29:45Z</dc:date>
    <item>
      <title>List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300353#M103</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with an RQL to display the list of Users, policies attached, and the actions allowed in the policies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to export this into a CSV. Any help here is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sultan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 18:08:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300353#M103</guid>
      <dc:creator>SultanMasihuddin</dc:creator>
      <dc:date>2020-09-02T18:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300614#M104</link>
      <description>&lt;P&gt;Hi Sultan,&lt;BR /&gt;&lt;BR /&gt;What cloud provider are you trying to pull a list of users for?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Eddie&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 17:46:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300614#M104</guid>
      <dc:creator>ebeuerlein</dc:creator>
      <dc:date>2019-11-25T17:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300773#M105</link>
      <description>&lt;P&gt;Hi Eddie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to output the list of AWS IAM users, the policies attached to each user, and the list of Actions that they're allowed. If this could be displayed in three different columns, that would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sultan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 14:52:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300773#M105</guid>
      <dc:creator>SultanMasihuddin</dc:creator>
      <dc:date>2019-11-26T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300783#M106</link>
      <description>&lt;P&gt;So users can have inline policies as well as attached policies.&amp;nbsp; It would be difficult to show it all in one pane due to the joins that would need to be used.&amp;nbsp; Do you only want to list users that have inline or attached policies? Or a complete list of users regardless of policies?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 15:37:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/300783#M106</guid>
      <dc:creator>ebeuerlein</dc:creator>
      <dc:date>2019-11-26T15:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301158#M107</link>
      <description>&lt;P&gt;If space is a constraint, we can do it two iterations. First one shows all the users with attached policies and the actions allowed. Second shows all the users with inline policies and actions allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How's this to begin with?.. but no luck though.. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;config where api.name = 'aws-iam-list-attached-user-policies' as X; config where api.name = 'aws-iam-get-policy-version' as Y; filter "$.X.attachedPolicies.policyArn==$.Y.policyArn and $.Y.document.Statement[?(@.Effect == 'Allow' &amp;amp;&amp;amp; @.Action is not empty]; show Y;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 21:52:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301158#M107</guid>
      <dc:creator>SultanMasihuddin</dc:creator>
      <dc:date>2019-11-27T21:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301663#M108</link>
      <description>&lt;P&gt;This should get you what you are looking for (you were missing the brackets for the array (attachedPolicies):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;config where api.name = 'aws-iam-list-attached-user-policies' as X; config where api.name = 'aws-iam-get-policy-version' as Y; filter "$.X.attachedPolicies[*].policyArn==$.Y.policyArn and $.Y.document.Statement[?(@.Effect=='Allow')].Action is not empty"; show Y;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Dec 2019 16:14:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301663#M108</guid>
      <dc:creator>ebeuerlein</dc:creator>
      <dc:date>2019-12-02T16:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301671#M109</link>
      <description>&lt;P&gt;Eddie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, this is helpful. But how can I list all the allowed actions in the form of a column. My end goal is to export this to a CSV which shows all the user policies and actions it allows. Currently, if I were to export it, the output doesn't display the list of actions allowed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 16:56:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301671#M109</guid>
      <dc:creator>SultanMasihuddin</dc:creator>
      <dc:date>2019-12-02T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301697#M110</link>
      <description>&lt;P&gt;You won't be able to do that within the UI due to the sheer number of actions that could be returned.&amp;nbsp; I would suggest using our API to pull the data you want and export it into CSV format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:28:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301697#M110</guid>
      <dc:creator>ebeuerlein</dc:creator>
      <dc:date>2019-12-02T18:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301699#M111</link>
      <description>&lt;P&gt;Thanks Eddie. That makes sense!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:29:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/301699#M111</guid>
      <dc:creator>SultanMasihuddin</dc:creator>
      <dc:date>2019-12-02T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/302469#M112</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe it will show only the first case that attached policies with action only.Not inline policy details with action.Also please help me to understand where it's showing list of user names and respective policy details and action details.The report is showing only list of policy details not even action??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me if i am wrong??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 07:47:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/302469#M112</guid>
      <dc:creator>MPalagiri</dc:creator>
      <dc:date>2019-12-07T07:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/302470#M113</link>
      <description>&lt;P&gt;Hi Eddy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe it will show only the first case that attached policies with action only.Not inline policy details with action.Also please help me to understand where it's showing list of user names and respective policy details and action details.The report is showing only list of policy details not even action??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me if i am wrong??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 07:47:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/302470#M113</guid>
      <dc:creator>MPalagiri</dc:creator>
      <dc:date>2019-12-07T07:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: List user policies and actions</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/302566#M114</link>
      <description>&lt;P&gt;Yes, as I mentioned earlier, you would need two RQL statements to get you both inline and attached.&amp;nbsp; To get the username and specific items you are looking for, you would need to use an API call with some filtering with a scripting language like python.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 20:09:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/list-user-policies-and-actions/m-p/302566#M114</guid>
      <dc:creator>ebeuerlein</dc:creator>
      <dc:date>2019-12-08T20:09:28Z</dc:date>
    </item>
  </channel>
</rss>

