<?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 limiting the user's view based on log in credentials in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536437#M2547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got sales territories across the US.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want sales managers to be able to log in, and only be able to see data from a nationwide data set &lt;/SPAN&gt;&lt;STRONG&gt;limited to their own territory&lt;/STRONG&gt;&lt;SPAN&gt;. There is a possibility we'd want some layers limited, and other layers nation-wide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure there are round-about ways to do with multiple layers for each territory, but I'd like to tackle this as straight forward as possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone point me in the right direction or give me some ideas?&amp;nbsp; A sample maybe?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;system details - SQL server 2008, ArcGIS Server 10, javascript API&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 13:57:54 GMT</pubDate>
    <dc:creator>evanpicard</dc:creator>
    <dc:date>2012-10-23T13:57:54Z</dc:date>
    <item>
      <title>limiting the user's view based on log in credentials</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536437#M2547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got sales territories across the US.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want sales managers to be able to log in, and only be able to see data from a nationwide data set &lt;/SPAN&gt;&lt;STRONG&gt;limited to their own territory&lt;/STRONG&gt;&lt;SPAN&gt;. There is a possibility we'd want some layers limited, and other layers nation-wide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure there are round-about ways to do with multiple layers for each territory, but I'd like to tackle this as straight forward as possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone point me in the right direction or give me some ideas?&amp;nbsp; A sample maybe?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;system details - SQL server 2008, ArcGIS Server 10, javascript API&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 13:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536437#M2547</guid>
      <dc:creator>evanpicard</dc:creator>
      <dc:date>2012-10-23T13:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: limiting the user's view based on log in credentials</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536438#M2548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if you use feature service you can use defaultDefinitionExpression for filter data &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featurelayer.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featurelayer.htm&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in 10.1 you can also use LayerDataSource for definition source (data native rdbms)&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/layerdatasource.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/layerdatasource.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However for protect you filter you need apply your filter at level of proxy using for example in function of login (server side) a lookup user - filter 'unknown'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 06:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536438#M2548</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-10-25T06:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: limiting the user's view based on log in credentials</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536439#M2549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! Yes, definition query makes sense.&amp;nbsp; But I'm not sure I understand that last part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;However for protect you filter you need apply your filter at level of proxy using for example in function of login (server side) a lookup user - filter 'unknown'&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please explain?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 11:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536439#M2549</guid>
      <dc:creator>evanpicard</dc:creator>
      <dc:date>2012-10-25T11:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: limiting the user's view based on log in credentials</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536440#M2550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;js (or web client in general) does request client side: a manager log in your app and he can see request with filter (defaultDefinitionExpression ) for his data, so he can do request (rest) for another nationwide data if he understand the logic of criterio filter so you should obfuscate this filter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 13:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/limiting-the-user-s-view-based-on-log-in/m-p/536440#M2550</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-10-25T13:48:00Z</dc:date>
    </item>
  </channel>
</rss>

