<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>You wouldn’t refer to Group 2 in your Role definition, you’d have a MemberGrant that gives access=“none” to [Measures].[Measure 2].</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:mondrian-bounces@pentaho.org">mondrian-bounces@pentaho.org</a>&gt; on behalf of kevin melo &lt;<a href="mailto:kevinmelo92@gmail.com">kevinmelo92@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Mondrian list &lt;<a href="mailto:mondrian@pentaho.org">mondrian@pentaho.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, March 2, 2016 at 10:43 AM<br>
<span style="font-weight:bold">To: </span>Mondrian list &lt;<a href="mailto:mondrian@pentaho.org">mondrian@pentaho.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Mondrian] Role and Cube<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">I'm getting some problems with role in mondrian 4... In Mondrian 3 use and test and works, but i'm not getting nay result in mondrian 4.
<div>Can you help me?</div>
<div><br>
</div>
<div>A example of my Schema:</div>
<div>&lt;<b>Schema</b> name=&quot;My Schema&quot;&gt;</div>
<div>&nbsp; &nbsp; &lt;<b>Dimension</b> name=&quot;My Dimension&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>Attribute</b> name=&quot;address&quot;/&gt;</div>
<div>&nbsp; &nbsp; &lt;/<b>Dimension</b>&gt;</div>
<div>&nbsp; &nbsp; &lt;<b>Cube</b> name=&quot;My Cube&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>Dimension</b> source=&quot;My Dimension&quot;/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>MeasureGroups</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>MeasureGroup</b> name=&quot;Group 1&quot; type=&quot;fact&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>Measures</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>Measure</b> name=&quot;Measure 1&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/<b>Measures</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/<b>MeasureGroup</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>MeasureGroup</b> name=&quot;Group 2&quot; type=&quot;fact&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>Measures</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>Measure</b> name=&quot;Measure 2&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/<b>Measures</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/<b>MeasureGroup</b>&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;<b>MeasureGroups</b>&gt;</div>
<div>&nbsp; &nbsp; &lt;/<b>Cube</b>&gt;</div>
<div>&lt;/<b>Schema</b>&gt;</div>
<div><br>
</div>
<div>How will be the Role, if i want to deny the access to the <b>MeasureGroup </b>
name=&quot;Group 2&quot;?</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-03-02 11:28 GMT-03:00 Matt Campbell <span dir="ltr">
&lt;<a href="mailto:mcampbell@pentaho.com" target="_blank">mcampbell@pentaho.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div><br>
</div>
<div>You need to individually specify the measure members you want to grant or deny access to, not the whole measure group.&nbsp; Another thing to keep in mind— I believe if you specify any measures as access=‘all’ or ‘none’, then any measures that aren’t explicitly
 referenced are assumed to be ‘none’.&nbsp; So any measures you want to be accessible within a role need to have access=‘all’.</div>
<div>
<div></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span class=""><span style="font-weight:bold">From: </span>&lt;<a href="mailto:mondrian-bounces@pentaho.org" target="_blank">mondrian-bounces@pentaho.org</a>&gt; on behalf of kevin melo &lt;<a href="mailto:kevinmelo92@gmail.com" target="_blank">kevinmelo92@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Mondrian list &lt;<a href="mailto:mondrian@pentaho.org" target="_blank">mondrian@pentaho.org</a>&gt;<br>
</span><span style="font-weight:bold">Date: </span>Wednesday, March 2, 2016 at 8:55 AM<br>
<span style="font-weight:bold">To: </span>Mondrian list &lt;<a href="mailto:mondrian@pentaho.org" target="_blank">mondrian@pentaho.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Mondrian] Role and Cube<br>
</div>
<div>
<div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">Ok, but in mondrian 3 i have 3 cube with one virtual cube.
<div>Now in mondrian 4 i have 1 cube with 3 facts MeasureGroup. And inside my measuregroup i didt' have hierarchy only inside my dimensions</div>
<div><br>
</div>
<div>i want to restrict access to a specific measuregroup.</div>
<div>
<div>&lt;Role name=&quot;TEST&quot;&gt;</div>
<div><span style="white-space:pre-wrap"></span>&lt;SchemaGrant access=&quot;none&quot;&gt;</div>
<div><span style="white-space:pre-wrap"></span>&lt;CubeGrant access=&quot;all&quot; cube=&quot;MyCube&quot;&gt;</div>
<div><span style="white-space:pre-wrap"></span>&lt;<span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">MemberGrant</span>&nbsp;access=&quot;none&quot; member=&quot;MyMeasureGroup&quot;/&gt;</div>
<div><span style="white-space:pre-wrap"></span>&lt;/CubeGrant&gt;</div>
<div><span style="white-space:pre-wrap"></span>&lt;/SchemaGrant&gt;</div>
<div>&lt;/Role&gt;</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-03-02 10:41 GMT-03:00 Matt Campbell <span dir="ltr">
&lt;<a href="mailto:mcampbell@pentaho.com" target="_blank">mcampbell@pentaho.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div><br>
</div>
<div>The definition of a &lt;Role&gt; in Mondrian 4 is consistent with Mondrian 3.&nbsp; And yes, you should be able to restrict access to a measure by specifying &nbsp;a MemberGrant with access=‘none’.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:mondrian-bounces@pentaho.org" target="_blank">mondrian-bounces@pentaho.org</a>&gt; on behalf of kevin melo &lt;<a href="mailto:kevinmelo92@gmail.com" target="_blank">kevinmelo92@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Mondrian list &lt;<a href="mailto:mondrian@pentaho.org" target="_blank">mondrian@pentaho.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, March 2, 2016 at 6:45 AM<br>
<span style="font-weight:bold">To: </span>Mondrian list &lt;<a href="mailto:mondrian@pentaho.org" target="_blank">mondrian@pentaho.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[Mondrian] Role and Cube<br>
</div>
<span>
<div><br>
</div>
<div>
<div>
<div dir="ltr">In mondrian-4 Role have any syntax difference in create a role?
<div><br>
</div>
<div>And i can restrict the access to some measure inside my cube?</div>
<div><br>
</div>
<div>Ex: I have 3 Measure: <b>amount, price, discount</b>. And i want to block the access to the amount measure.</div>
</div>
</div>
</div>
</span></span></div>
<br>
_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org" target="_blank">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" rel="noreferrer" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
<br>
_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" rel="noreferrer" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>