<?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 Can I create a rule that is applied to multiple Object URIs (URIs containing a specific substring) in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903237#M2090</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made some rules on Viya that allow members of a self-made User Admin group (UG_UserAdmin_&amp;lt;group1&amp;gt;) to manage another usergroup (UG_&amp;lt;group1&amp;gt;).&amp;nbsp;&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;&lt;STRONG&gt;Object uri&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Principal&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Setting&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Permissions&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Description&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;/identities/groups/UG_&amp;lt;group1&amp;gt;/userMembers/*&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;UG_UserAdmin_&amp;lt;group1&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Grant&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Create, Update, Delete&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;UG_UserAdmin_&amp;lt;group1&amp;gt; can add or remove members of the&lt;/P&gt;&lt;P class=""&gt;UG_&amp;lt;group1&amp;gt; group&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;/identities/groups/UG_&amp;lt;group1&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;UG_UserAdmin_&amp;lt;group1&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Grant&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Read&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;&amp;nbsp;UG_UserAdmin_&amp;lt;group1&amp;gt; see the UG_&amp;lt;group1&amp;gt; group&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have sets of rules like this for many different User Groups &amp;amp; corresponding User Admin Groups. This works like intended, but I would like to create a Global User Admin Group, that can administer all User groups. I know I can make this Global User Admin Group member of all individual User Admin Groups, but in some cases a User group does not have a User Administrator group, but I still want the&amp;nbsp;Global User Admin Group to be able to administer this group.&amp;nbsp; Allowing the&amp;nbsp;Global User Admin Group to administer ALL groups would not be an option either, because the&amp;nbsp;Global User Admin Group should only be allowed to administer a selection of the groups.&lt;/P&gt;&lt;P&gt;Is it possible to create a rule that is applied to Object Uri's following a certain naming convention. For example, I would like to apply a rule to every Object uri containing a certain substring ("/identities/groups/UG_" in this example)&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 15:53:10 GMT</pubDate>
    <dc:creator>RobWanders1</dc:creator>
    <dc:date>2023-11-15T15:53:10Z</dc:date>
    <item>
      <title>Can I create a rule that is applied to multiple Object URIs (URIs containing a specific substring)</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903237#M2090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made some rules on Viya that allow members of a self-made User Admin group (UG_UserAdmin_&amp;lt;group1&amp;gt;) to manage another usergroup (UG_&amp;lt;group1&amp;gt;).&amp;nbsp;&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;&lt;STRONG&gt;Object uri&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Principal&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Setting&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Permissions&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Description&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;/identities/groups/UG_&amp;lt;group1&amp;gt;/userMembers/*&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;UG_UserAdmin_&amp;lt;group1&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Grant&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Create, Update, Delete&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;UG_UserAdmin_&amp;lt;group1&amp;gt; can add or remove members of the&lt;/P&gt;&lt;P class=""&gt;UG_&amp;lt;group1&amp;gt; group&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;/identities/groups/UG_&amp;lt;group1&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;UG_UserAdmin_&amp;lt;group1&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Grant&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Read&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;&amp;nbsp;UG_UserAdmin_&amp;lt;group1&amp;gt; see the UG_&amp;lt;group1&amp;gt; group&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have sets of rules like this for many different User Groups &amp;amp; corresponding User Admin Groups. This works like intended, but I would like to create a Global User Admin Group, that can administer all User groups. I know I can make this Global User Admin Group member of all individual User Admin Groups, but in some cases a User group does not have a User Administrator group, but I still want the&amp;nbsp;Global User Admin Group to be able to administer this group.&amp;nbsp; Allowing the&amp;nbsp;Global User Admin Group to administer ALL groups would not be an option either, because the&amp;nbsp;Global User Admin Group should only be allowed to administer a selection of the groups.&lt;/P&gt;&lt;P&gt;Is it possible to create a rule that is applied to Object Uri's following a certain naming convention. For example, I would like to apply a rule to every Object uri containing a certain substring ("/identities/groups/UG_" in this example)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 15:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903237#M2090</guid>
      <dc:creator>RobWanders1</dc:creator>
      <dc:date>2023-11-15T15:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create a rule that is applied to multiple Object URIs (URIs containing a specific substrin</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903265#M2091</link>
      <description>I don't think you can add a wildcard next to a prefix in the Object URI.&lt;BR /&gt;I would try using the Object URIs /identities/groups/*/userMembers/* and /identities/groups/*, then add a condition on the request URI containing UG_. For example something like:&lt;BR /&gt;requestUri().contains('/identities/groups/UG_')</description>
      <pubDate>Wed, 15 Nov 2023 17:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903265#M2091</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-11-15T17:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create a rule that is applied to multiple Object URIs (URIs containing a specific substrin</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903421#M2092</link>
      <description>&lt;P&gt;Thanks for your reply! Your solution didn't quite work, but in the documentation about rule conditions&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/sasadmincdc/v_046/calauthzgen/n1xnhxt4tj57wzn1kdridi7u2g27.htm#n00k3uzfsdtdx9n1c1hk6pcc8mjh" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;I found this table:&lt;/P&gt;&lt;P&gt;FunctionDescriptionType&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;contentType()&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Content type of the target (for example,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class=""&gt;application/vnd.sas.credential.domain+json&lt;/CODE&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;String&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;contentLength()&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;Length of the request.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;long&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class=""&gt;uri()&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;URI of the target.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class=""&gt;String&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;And it seems like I need to use &lt;STRONG&gt;uri()&lt;/STRONG&gt; in my condition instead of &lt;STRONG&gt;requestUri().&lt;/STRONG&gt;&amp;nbsp;I modified the rule to&amp;nbsp;&lt;STRONG&gt;uri().contains('/identities/groups/UG_')&lt;/STRONG&gt;&amp;nbsp;and it works now.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 08:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Can-I-create-a-rule-that-is-applied-to-multiple-Object-URIs-URIs/m-p/903421#M2092</guid>
      <dc:creator>RobWanders1</dc:creator>
      <dc:date>2023-11-16T08:33:27Z</dc:date>
    </item>
  </channel>
</rss>

