<?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: API end point for Auto Assigning Security Roles (SaaS) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2528498#M22468</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/213264"&gt;@richardpearce60&lt;/a&gt;&amp;nbsp;- very helpful, thanks for documenting your approach&lt;/P&gt;</description>
    <pubDate>Wed, 27 Aug 2025 03:39:58 GMT</pubDate>
    <dc:creator>lachlanwcast</dc:creator>
    <dc:date>2025-08-27T03:39:58Z</dc:date>
    <item>
      <title>API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511013#M21939</link>
      <description>&lt;P&gt;RE&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/SaaS-roles-capacity-model.htm#:~:text=Do%20the%20following%3A-,In%20the%20Administration%20activity%20center%2C%20go%20to%20Manage%20users%20%3E%20Permissions,role%20at%20their%20next%20login" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/SaaS-roles-capacity-model.htm#:~:text=Do%20the%20following%3A-,In%20the%20Administration%20activity%20center%2C%20go%20to%20Manage%20users%20%3E%20Permissions,role%20at%20their%20next%20login&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to default all the security rules to Auto Assign to "Off" when creating a new tenant. I've been looking through the rest API Group, Users, Roles, ... but can't find anything relating to this&lt;/P&gt;&lt;P&gt;Does this exist in the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 14:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511013#M21939</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2025-03-21T14:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511232#M21946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/213264"&gt;@richardpearce60&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, this is possible. Right now we're in a transition, so there are a few you must change via tenants with a patch:&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/tenants/#patch-v1-tenants-tenantId" target="_blank"&gt;https://qlik.dev/apis/rest/tenants/#patch-v1-tenants-tenantId&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For this you'll want to do something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants/{tenantId}" \
-X PATCH \
-H "Content-type: application/json" \
-H "Authorization: Bearer &amp;lt;access_token&amp;gt;" \
-d '[{"op":"replace","path":"/autoAssignCreateSharedSpacesRoleToProfessionals","value":false},{"op":"replace","path":"/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals","value":false},{"op":"replace","path":"/autoAssignDataServicesContributorRoleToProfessionals","value":false}]'&lt;/LI-CODE&gt;
&lt;P&gt;This will turn off auto-assignment (at a per-user level on user creation, depending on their license):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;autoAssignCreateSharedSpacesRoleToProfessionals - automatically assign the shared spaces role to professional/ full users&lt;/LI&gt;
&lt;LI&gt;autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals - auto assign the ability to create analytics in personal spaces for professional/ full users&lt;/LI&gt;
&lt;LI&gt;autoAssignDataServicesContributorRoleToProfessionals - assign contributor role for data services to professional/ full users&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you aren't licensed for data in your tenant the last one can likely be removed. We hope to move these to the below patterns this year.&lt;/P&gt;
&lt;P&gt;Then, for the built in roles, you can learn more here&amp;nbsp;&lt;A href="https://qlik.dev/manage/roles/assign-roles/" target="_blank"&gt;https://qlik.dev/manage/roles/assign-roles/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And finally, we have this thing called User Default - this is for specific scopes (permissions) which aren't major enough to be their own role, but you might have some things in here you wish to turn off for all users.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 09:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511232#M21946</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2025-03-24T09:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511252#M21947</link>
      <description>&lt;P&gt;Thanks very much Dave! I had fun throwing errors when I tried to patch hostname 1 to the same value although once I'd figured out where I was going wrong the rest worked perfectly for those settings. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 11:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511252#M21947</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2025-03-24T11:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511261#M21948</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1870"&gt;@Dave_Channon&lt;/a&gt;&amp;nbsp; regarding the the roles I've looked and can't see anything regarding auto-assign?&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I get a role which in this tenant I've set them all to Auto-Assign here are my results:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{'id': '608050f750afab80bd5359a4', 'name': 'Developer', 'type': 'default', 'canEdit': False, 'canDelete': False, 'level': 'user', 'assignedScopes': [], 'permissions': ['api-keys:read', 'api-keys:create', 'api-keys:update', 'api-keys:delete', 'api-keys:list_own', 'api-keys:use'], 'createdAt': '2021-04-21T16:21:11.540Z', 'lastUpdatedAt': '2022-11-29T15:03:11.200Z', 'links': {'self': {'href': 'https://xxxxxxxx.us.qlikcloud.com/api/v1/roles/608050f750afab80bd5359a4'}}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't see anything about the auto assign?&lt;/P&gt;&lt;P&gt;Are you saying I have to remove the assigned roles when a new user is created?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 11:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511261#M21948</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2025-03-24T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511262#M21949</link>
      <description>&lt;P&gt;There's two ways that users get roles:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Either assigned on creation/ login (which is what the PATCH to tenants can disable), but after disabling the auto assign you'll need to remove it from any user who was given it prior to you changing the setting. This is assigned against individual users.&lt;/LI&gt;
&lt;LI&gt;Using the Everyone group. Although the UI shows "Auto Assign", this isn't correct. What it does it it assigns it to the everyone group, which...everyone...is part of. So they don't get it auto assigned to them, they inherit it through the everyone group.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You won't see anything on autoassignment from the roles service itself, it's all managed either on users or groups. Does that help?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 11:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511262#M21949</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2025-03-24T11:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511278#M21950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1870"&gt;@Dave_Channon&lt;/a&gt;&amp;nbsp;thanks for your response. I've found the solution by updating the system group&amp;nbsp;&lt;SPAN&gt;000000000000000000000001&lt;/SPAN&gt;&amp;nbsp;(I think this is the "everyone" group ID)&lt;/P&gt;&lt;P&gt;. when you run this it will default everything to off with the Auto-Assign&lt;/P&gt;&lt;P&gt;Thanks for you help... was struggling on this one&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;            data = [{
                "op": "replace",
                "path": "/systemGroups/000000000000000000000001/assignedRoles",
                "value": []
            }]
            response = qlik_oauth_connection.client.rest(path="/groups/settings", method="PATCH",data=data)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 13:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2511278#M21950</guid>
      <dc:creator>richardpearce60</dc:creator>
      <dc:date>2025-03-24T13:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: API end point for Auto Assigning Security Roles (SaaS)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2528498#M22468</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/213264"&gt;@richardpearce60&lt;/a&gt;&amp;nbsp;- very helpful, thanks for documenting your approach&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 03:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/API-end-point-for-Auto-Assigning-Security-Roles-SaaS/m-p/2528498#M22468</guid>
      <dc:creator>lachlanwcast</dc:creator>
      <dc:date>2025-08-27T03:39:58Z</dc:date>
    </item>
  </channel>
</rss>

