<?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 Automatically change gallery mongoDB value when user is no longer with company in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Automatically-change-gallery-mongoDB-value-when-user-is-no/m-p/899011#M10248</link>
    <description>&lt;P&gt;Our Gallery isn't connected directly to our HR system. So, when an employee is terminated their access is not revoked from the gallery. I can connect to our HR system to check for terminated employees and I know how to read from the MongoDB to get the user's info(Alteryx Gallery Database and users collection).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I don't know how to do is WRITE to the mongoDB to revoke the users access. I'm guessing I would want to change the following fields to "False"&lt;/P&gt;&lt;P&gt;Active, CanSchedule, CanSetPriority, CanSetWorkerTag,CanCreateCollections and set AccountLocked to True? Is that correct? If so, how can we write to the MongoDB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 15:07:23 GMT</pubDate>
    <dc:creator>csh8428</dc:creator>
    <dc:date>2022-02-04T15:07:23Z</dc:date>
    <item>
      <title>Automatically change gallery mongoDB value when user is no longer with company</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Automatically-change-gallery-mongoDB-value-when-user-is-no/m-p/899011#M10248</link>
      <description>&lt;P&gt;Our Gallery isn't connected directly to our HR system. So, when an employee is terminated their access is not revoked from the gallery. I can connect to our HR system to check for terminated employees and I know how to read from the MongoDB to get the user's info(Alteryx Gallery Database and users collection).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I don't know how to do is WRITE to the mongoDB to revoke the users access. I'm guessing I would want to change the following fields to "False"&lt;/P&gt;&lt;P&gt;Active, CanSchedule, CanSetPriority, CanSetWorkerTag,CanCreateCollections and set AccountLocked to True? Is that correct? If so, how can we write to the MongoDB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 15:07:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Automatically-change-gallery-mongoDB-value-when-user-is-no/m-p/899011#M10248</guid>
      <dc:creator>csh8428</dc:creator>
      <dc:date>2022-02-04T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically change gallery mongoDB value when user is no longer with company</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Automatically-change-gallery-mongoDB-value-when-user-is-no/m-p/899020#M10249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/26425"&gt;@csh8428&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I'm not 100% sure where you can change it. Probably one of these will work, need to test or to be more precise you can take a look at the documentation about the mongodb structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm not wrong I think that the correct option to change is on user collection on AlteryxGallery schema change the option ACTIVE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosteixeira_0-1643988237272.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/221589i9573464968B3DB86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosteixeira_0-1643988237272.png" alt="carlosteixeira_0-1643988237272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Active&lt;/STRONG&gt;:&amp;nbsp; (Boolean) The user's email address is active.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosteixeira_1-1643988297494.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/221590iABAACA79C1A20DC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosteixeira_1-1643988297494.png" alt="carlosteixeira_1-1643988297494.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/20212/server/alteryxservice-mongodb-schema" target="_blank" rel="noopener"&gt;https://help.alteryx.com/20212/server/alteryxservice-mongodb-schema&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(BUT BE CAREFUL - IY YOU ARE GOING TO EDIT MONGODB, DO IT UNDER THE SUPERVISION BY ALTERYX SUPPORT)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(And always backup mongo before any changes)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And, generally, when we need to do some change directly on mongodb we are using the ROBO3T for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carlos A Teixeira&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 15:40:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Automatically-change-gallery-mongoDB-value-when-user-is-no/m-p/899020#M10249</guid>
      <dc:creator>carlosteixeira</dc:creator>
      <dc:date>2022-02-04T15:40:42Z</dc:date>
    </item>
  </channel>
</rss>

