<?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: [QlikCloud] Modifying auto-assignments of user’s roles by REST API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2414879#M19798</link>
    <description>&lt;P&gt;Great, thanks for the update&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216828"&gt;@sanekagr2&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 13:05:58 GMT</pubDate>
    <dc:creator>Dave_Channon</dc:creator>
    <dc:date>2024-02-05T13:05:58Z</dc:date>
    <item>
      <title>[QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413209#M19774</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;For the creation of new basic users instead of full users I have to cancel some&amp;nbsp;auto-assignments&amp;nbsp;of user’s roles (Data Services Contributor, Private Analytics Content Creator or Shared Space Content Creator), it can be found here:&amp;nbsp;&lt;A href="https://{tenant-name}.eu.qlikcloud.com/console/users/permissions" target="_blank"&gt;https://{tenant-name}.eu.qlikcloud.com/console/users/permissions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanekagr2_0-1706721042460.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158794i911D991DB4AF295A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanekagr2_0-1706721042460.png" alt="sanekagr2_0-1706721042460.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there a way to do it by the API?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 17:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413209#M19774</guid>
      <dc:creator>sanekagr2</dc:creator>
      <dc:date>2024-01-31T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413467#M19777</link>
      <description>&lt;P&gt;You should be able to do it using qlik-cli. Look this help page&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/toolkits/qlik-cli/user/user-edit/" target="_blank"&gt;https://qlik.dev/toolkits/qlik-cli/user/user-edit/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 08:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413467#M19777</guid>
      <dc:creator>Vincenzo_Esposito</dc:creator>
      <dc:date>2024-02-01T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413596#M19781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216828"&gt;@sanekagr2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at&amp;nbsp;&lt;A href="https://qlik.dev/manage/tenants/tenant-features/#configure-application-automation" target="_blank"&gt;https://qlik.dev/manage/tenants/tenant-features/#configure-application-automation&lt;/A&gt;&amp;nbsp;- there is an example of removing the automatic access to app automation from the everyone group there.&lt;/P&gt;
&lt;P&gt;Or are you referring to individually assigned roles? If so, that's a very similar process, but running the update on the user with a similar command using a user patch&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/users/#%23%2Fentries%2Fv1%2Fusers%2F-userId-patch" target="_blank"&gt;https://qlik.dev/apis/rest/users/#%23%2Fentries%2Fv1%2Fusers%2F-userId-patch&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 13:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413596#M19781</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-02-01T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413650#M19782</link>
      <description>&lt;P&gt;Thank You, &lt;SPAN&gt;Can I change tenant permissions settings via CLI, or is it only possible on the user level.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 83px; top: -20px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413650#M19782</guid>
      <dc:creator>sanekagr2</dc:creator>
      <dc:date>2024-02-01T15:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413655#M19783</link>
      <description>&lt;P&gt;I prefer to change the tenant auto assigning settings but if it's not possible I can change&amp;nbsp; the user type from full to basic, is it possible by PATCH users?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413655#M19783</guid>
      <dc:creator>sanekagr2</dc:creator>
      <dc:date>2024-02-01T15:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413894#M19789</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216828"&gt;@sanekagr2&lt;/a&gt;&amp;nbsp;If you're using a capacity entitlement (e.g. full/basic rather than professional/analyzer), then the users will be set as a full user if they have specific roles. Which roles are being auto assigned to those users directly?&lt;/P&gt;
&lt;P&gt;In any case, you can PATCH the users to remove any roles you don't require, yes.&lt;/P&gt;
&lt;P&gt;Let me provide an example, this call:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --location "https://orchestration.eu.qlikcloud.com/api/v1/users/65bcc053fca2ee34855adf24" ^
--header "Authorization: Bearer " ^
--header "Content-type: application/json" ^
--header "Accept: application/json"&lt;/LI-CODE&gt;
&lt;P&gt;Will return for that user their user data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "id": "65bcc053fca2ee34855adf24",
    "tenantId": "BL4tTJ4S7xrHTcq0zQxQrJ5qB1_Q6cSo",
    "status": "active",
    "subject": "auth0|a08D000001F0WJRIA312",
    "name": "A new user to demonstrate roles",
    "email": "myemail@qlik.com",
    "roles": [
        "Developer"
    ],
    "assignedRoles": [
        {
            "id": "608050f7634644db3678b1a2",
            "name": "Developer",
            "type": "default",
            "level": "user"
        }
    ],
    "assignedGroups": [
        {
            "id": "000000000000000000000001",
            "name": "com.qlik.Everyone",
            "assignedRoles": [
                {
                    "id": "6356f0425cf9728f1962b95c",
                    "name": "Steward",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "63580b8d5cf9728f19217be0",
                    "name": "PrivateAnalyticsContentCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "605a1c2151382ffc836af862",
                    "name": "SharedSpaceCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "6467dcd960754c03a3ed402c",
                    "name": "AutomationCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "6356f0425cf9728f1962b942",
                    "name": "DataServicesContributor",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "605a1c2151382ffc836af86b",
                    "name": "DataSpaceCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "608050f7634644db3678b1a2",
                    "name": "Developer",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "605a1c2151382ffc836af866",
                    "name": "ManagedSpaceCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "64de70c1cce069297e919393",
                    "name": "AutomlExperimentContributor",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "64de70c1cce069297e919406",
                    "name": "AutomlDeploymentContributor",
                    "type": "default",
                    "level": "user"
                }
            ]
        }
    ],
    "createdAt": "2024-02-02T10:13:39.799Z",
    "lastUpdatedAt": "2024-02-02T10:15:45.156Z",
    "created": "2024-02-02T10:13:39.799Z",
    "lastUpdated": "2024-02-02T10:15:45.156Z",
    "links": {
        "self": {
            "href": "https://orchestration.eu.qlikcloud.com/api/v1/users/65bcc053fca2ee34855adf24"
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This shows that they have assigned a single role directly, the 'Developer' role. But they have a lot of roles through the Everyone group.&lt;/P&gt;
&lt;P&gt;To remove ALL individually assigned roles:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --location --request PATCH "https://orchestration.eu.qlikcloud.com/api/v1/users/65bcc053fca2ee34855adf24" ^
--header "Authorization: Bearer " ^
--header "Content-type: application/json" ^
--data "[
    {
        \"op\": \"replace\",
        \"path\": \"/assignedRoles\",
        \"value\": []
    }
]"&lt;/LI-CODE&gt;
&lt;P&gt;Now the user looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "id": "65bcc053fca2ee34855adf24",
    "tenantId": "BL4tTJ4S7xrHTcq0zQxQrJ5qB1_Q6cSo",
    "status": "active",
    "subject": "auth0|a08D000001F0WJRIA312",
    "name": "A new user to demonstrate roles",
    "email": "myemail@qlik.com",
    "roles": [],
    "assignedRoles": [],
    "assignedGroups": [
        {
            "id": "000000000000000000000001",
            "name": "com.qlik.Everyone",
            "assignedRoles": [
                {
                    "id": "6356f0425cf9728f1962b95c",
                    "name": "Steward",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "63580b8d5cf9728f19217be0",
                    "name": "PrivateAnalyticsContentCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "605a1c2151382ffc836af862",
                    "name": "SharedSpaceCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "6467dcd960754c03a3ed402c",
                    "name": "AutomationCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "6356f0425cf9728f1962b942",
                    "name": "DataServicesContributor",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "605a1c2151382ffc836af86b",
                    "name": "DataSpaceCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "608050f7634644db3678b1a2",
                    "name": "Developer",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "605a1c2151382ffc836af866",
                    "name": "ManagedSpaceCreator",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "64de70c1cce069297e919393",
                    "name": "AutomlExperimentContributor",
                    "type": "default",
                    "level": "user"
                },
                {
                    "id": "64de70c1cce069297e919406",
                    "name": "AutomlDeploymentContributor",
                    "type": "default",
                    "level": "user"
                }
            ]
        }
    ],
    "createdAt": "2024-02-02T10:13:39.799Z",
    "lastUpdatedAt": "2024-02-02T10:17:16.502Z",
    "created": "2024-02-02T10:13:39.799Z",
    "lastUpdated": "2024-02-02T10:17:16.502Z",
    "links": {
        "self": {
            "href": "https://orchestration.eu.qlikcloud.com/api/v1/users/65bcc053fca2ee34855adf24"
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To remove the roles inherited from the everyone group, you need to remove that from that group, per the guide in my previous link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 10:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2413894#M19789</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-02-02T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2414527#M19795</link>
      <description>&lt;P&gt;It solved the problem, PATCH of the &lt;SPAN&gt;everyone&amp;nbsp;&lt;/SPAN&gt;group canceled auto-&lt;SPAN&gt;assigned roles&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;, thanks.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --location --request PATCH 'https://&amp;lt;tenant&amp;gt;.eu.qlikcloud.com/api/v1/groups/000000000000000000000001' \
--header 'Authorization: Bearer ^' \
--header 'Content-Type: application/json' \
--data '[
   {
        "op": "replace",
        "path": "assignedRoles",
        "value": []
    }
]'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 21:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2414527#M19795</guid>
      <dc:creator>sanekagr2</dc:creator>
      <dc:date>2024-02-04T21:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikCloud] Modifying auto-assignments of user’s roles by REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2414879#M19798</link>
      <description>&lt;P&gt;Great, thanks for the update&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216828"&gt;@sanekagr2&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikCloud-Modifying-auto-assignments-of-user-s-roles-by-REST-API/m-p/2414879#M19798</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2024-02-05T13:05:58Z</dc:date>
    </item>
  </channel>
</rss>

