<?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 add ad groups in bulk in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197535#M23101</link>
    <description>&lt;P&gt;Hi All, looking for some help on how to add several groups for authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see the cluster v1 api endpoint that seems to allow to post groups in bulk, but I cannot find any documentation on this. Cluster API v1 &amp;gt; User Groups &amp;gt; /groups/bulk (post). This gives a sample payload but it is not very helpful.&amp;nbsp;Is there doc on this so I can learn how to form the payload? Do I add the groups and assign permissions in the same call? Has any one else used this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jordan&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 09:54:08 GMT</pubDate>
    <dc:creator>jordan_rose</dc:creator>
    <dc:date>2022-11-02T09:54:08Z</dc:date>
    <item>
      <title>add ad groups in bulk</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197535#M23101</link>
      <description>&lt;P&gt;Hi All, looking for some help on how to add several groups for authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see the cluster v1 api endpoint that seems to allow to post groups in bulk, but I cannot find any documentation on this. Cluster API v1 &amp;gt; User Groups &amp;gt; /groups/bulk (post). This gives a sample payload but it is not very helpful.&amp;nbsp;Is there doc on this so I can learn how to form the payload? Do I add the groups and assign permissions in the same call? Has any one else used this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jordan&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:54:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197535#M23101</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2022-11-02T09:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: add ad groups in bulk</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197552#M23104</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/26207"&gt;@jordan_rose&lt;/a&gt; , good day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you check for this doc already? &lt;A href="https://api.dynatrace.com/spec/#/Group%20management/GroupsController_createGroups" target="_blank"&gt;https://api.dynatrace.com/spec/#/Group%20management/GroupsController_createGroups&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can GET a current group that has the permissions you need to get its id, then use a new GET to the group permissions using this id, and use its response as model in your POST request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request GET 'https://api.dynatrace.com/iam/v1/accounts/your-tenant-id/groups' \
--header 'Authorization: Bearer yourtoken' \
--header 'Content-Type: application/json'&lt;/LI-CODE&gt;&lt;P&gt;result is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "count": 2290,
    "items": [
        {
            "uuid": "95ce21f2-ec05-4470-9c2e-23b5b446fda7",
            "name": "Account viewer",
            "owner": "SAML",
            "description": null,
            "federatedAttributeValues": [
                "cn=CIO_Dyna_AccView"
            ],
            "hidden": false,
            "createdAt": "2019-09-26T17:42:47Z",
            "updatedAt": "2021-09-21T11:36:00Z"
        },
        {
            "uuid": "81d47053-bcf9-48b4-a831-f9f188e7a62c",
            "name": "Monitoring admin",
            "owner": "SAML",
            "description": null,
            "federatedAttributeValues": [
                "cn=CIO_Dyna_MonAdmin"
            ],
            "hidden": false,
            "createdAt": "2019-09-26T17:42:47Z",
            "updatedAt": "2021-09-21T11:37:46Z"
        },
...
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the group id to get the permissions:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request GET 'https://api.dynatrace.com/iam/v1/accounts/your-tenant-id/groups/95ce21f2-ec05-4470-9c2e-23b5b446fda7/permissions' \
--header 'Authorization: Bearer yourtoken' \
--header 'Content-Type: application/json'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "uuid": "95ce21f2-ec05-4470-9c2e-23b5b446fda7",
    "name": "Account viewer",
    "owner": "SAML",
    "description": null,
    "federatedAttributeValues": [
        "cn=CIO_Dyna_AccView"
    ],
    "hidden": false,
    "createdAt": "2019-09-26T17:42:47Z",
    "updatedAt": "2021-09-21T11:36:00Z",
    "permissions": [
        {
            "permissionName": "account-viewer",
            "scope": "your-tenant-id",
            "scopeType": "account",
            "createdAt": "2022-04-04T18:48:26Z",
            "updatedAt": "2022-04-04T18:48:26Z"
        },
        {
            "permissionName": "tenant-viewer",
            "scope": "your-tenant",
            "scopeType": "tenant",
            "createdAt": "2022-04-04T18:48:26Z",
            "updatedAt": "2022-04-04T18:48:26Z"
        },
        {
            "permissionName": "tenant-replay-sessions-with-masking",
            "scope": "your-tenant",
            "scopeType": "tenant",
            "createdAt": "2022-04-04T18:48:26Z",
            "updatedAt": "2022-04-04T18:48:26Z"
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you can use it as model to create a new group and set its permission&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 01 Nov 2022 20:56:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197552#M23104</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2022-11-01T20:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: add ad groups in bulk</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197609#M23107</link>
      <description>&lt;P&gt;This helped me figure it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:31:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/add-ad-groups-in-bulk/m-p/197609#M23107</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2022-11-02T13:31:02Z</dc:date>
    </item>
  </channel>
</rss>

