<?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 Pro-Tip: Run Monaco Deployments as OAuth Service User in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/259546#M1467</link>
    <description>&lt;P&gt;Service Users have been around in Dynatrace for some time now. Although first only createable via API, they can now be created via the Account management UI as well. However I ran into a not-so obvious challenge there when I wanted to create a service user for my monaco deployment pipeline.&lt;BR /&gt;Monaco requires an OAuth Client to work. So I wanted to create an OAuth Client for a service user. When you do that via the UI you will be challenged by this message:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="service-user-oauth.png" style="width: 502px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23729i465994E26D40941F/image-dimensions/502x414?v=v2" width="502" height="414" role="button" title="service-user-oauth.png" alt="service-user-oauth.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem is that you cannot easily assign the "account-user-mangement" permission to a service user. If you try to edit the service user you will not get this permission listed to add it (likely because it is a account permission with no policy available?).&lt;/P&gt;&lt;P&gt;My intuitive thought was:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"OK, lets create a group; give that group account user management permissions; bind monaco required policies to it and then add the service user to that group"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This also fails because you can't add a service user to a group like any other user! (&lt;STRONG&gt;IMO that is a bug!&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;So I tried this, which worked:&lt;/P&gt;&lt;P&gt;First: create a group "Monaco" assign it account permissions and bind some policies to it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_0-1729160252798.png" style="width: 714px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23730i231795139941BDCD/image-dimensions/714x356?v=v2" width="714" height="356" role="button" title="r_weber_0-1729160252798.png" alt="r_weber_0-1729160252798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Second: since you can't add a service user to the group via UI, add it to the "Monaco" group via API.&lt;BR /&gt;In my case I did this via monaco (using another OAuth client):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_1-1729160478619.png" style="width: 638px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23731iA7167BDAC554FEA4/image-dimensions/638x88?v=v2" width="638" height="88" role="button" title="r_weber_1-1729160478619.png" alt="r_weber_1-1729160478619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now the service user has the required permissions so that we can create a OAuth client for it. The UI will not complain about missing permissions of the service user:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_2-1729160629227.png" style="width: 620px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23732i63A29E4CC7E550B5/image-dimensions/620x333?v=v2" width="620" height="333" role="button" title="r_weber_2-1729160629227.png" alt="r_weber_2-1729160629227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And you can now change your Monaco setup to use the new service user OAuth client. Any configuration change will now be recorded as done by the service user instead of any personalized account:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_3-1729160783341.png" style="width: 833px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23733iE7AB7005AB739EFA/image-dimensions/833x102?v=v2" width="833" height="102" role="button" title="r_weber_3-1729160783341.png" alt="r_weber_3-1729160783341.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think after the creation of the OAuth client you can also remove the service user from the "Monaco" group again, but I haven't tested that so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 10:28:18 GMT</pubDate>
    <dc:creator>r_weber</dc:creator>
    <dc:date>2024-10-17T10:28:18Z</dc:date>
    <item>
      <title>Pro-Tip: Run Monaco Deployments as OAuth Service User</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/259546#M1467</link>
      <description>&lt;P&gt;Service Users have been around in Dynatrace for some time now. Although first only createable via API, they can now be created via the Account management UI as well. However I ran into a not-so obvious challenge there when I wanted to create a service user for my monaco deployment pipeline.&lt;BR /&gt;Monaco requires an OAuth Client to work. So I wanted to create an OAuth Client for a service user. When you do that via the UI you will be challenged by this message:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="service-user-oauth.png" style="width: 502px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23729i465994E26D40941F/image-dimensions/502x414?v=v2" width="502" height="414" role="button" title="service-user-oauth.png" alt="service-user-oauth.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem is that you cannot easily assign the "account-user-mangement" permission to a service user. If you try to edit the service user you will not get this permission listed to add it (likely because it is a account permission with no policy available?).&lt;/P&gt;&lt;P&gt;My intuitive thought was:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"OK, lets create a group; give that group account user management permissions; bind monaco required policies to it and then add the service user to that group"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This also fails because you can't add a service user to a group like any other user! (&lt;STRONG&gt;IMO that is a bug!&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;So I tried this, which worked:&lt;/P&gt;&lt;P&gt;First: create a group "Monaco" assign it account permissions and bind some policies to it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_0-1729160252798.png" style="width: 714px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23730i231795139941BDCD/image-dimensions/714x356?v=v2" width="714" height="356" role="button" title="r_weber_0-1729160252798.png" alt="r_weber_0-1729160252798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Second: since you can't add a service user to the group via UI, add it to the "Monaco" group via API.&lt;BR /&gt;In my case I did this via monaco (using another OAuth client):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_1-1729160478619.png" style="width: 638px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23731iA7167BDAC554FEA4/image-dimensions/638x88?v=v2" width="638" height="88" role="button" title="r_weber_1-1729160478619.png" alt="r_weber_1-1729160478619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now the service user has the required permissions so that we can create a OAuth client for it. The UI will not complain about missing permissions of the service user:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_2-1729160629227.png" style="width: 620px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23732i63A29E4CC7E550B5/image-dimensions/620x333?v=v2" width="620" height="333" role="button" title="r_weber_2-1729160629227.png" alt="r_weber_2-1729160629227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And you can now change your Monaco setup to use the new service user OAuth client. Any configuration change will now be recorded as done by the service user instead of any personalized account:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_3-1729160783341.png" style="width: 833px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23733iE7AB7005AB739EFA/image-dimensions/833x102?v=v2" width="833" height="102" role="button" title="r_weber_3-1729160783341.png" alt="r_weber_3-1729160783341.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think after the creation of the OAuth client you can also remove the service user from the "Monaco" group again, but I haven't tested that so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 10:28:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/259546#M1467</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2024-10-17T10:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Tip: Run Monaco Deployments as OAuth Service User</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/259562#M1468</link>
      <description>&lt;P&gt;You can remove the account management permissions after you create the service client, it will continue to work.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 12:25:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/259562#M1468</guid>
      <dc:creator>eduard_van_der1</dc:creator>
      <dc:date>2024-10-17T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Tip: Run Monaco Deployments as OAuth Service User</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/275779#M1617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I think it was a bug, you can &lt;SPAN&gt;easily assign the "account-user-mangement" permission to a service user, from the UI, right now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 15:32:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-Tip-Run-Monaco-Deployments-as-OAuth-Service-User/m-p/275779#M1617</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-04-23T15:32:50Z</dc:date>
    </item>
  </channel>
</rss>

