<?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: Create custom permissions in your Morpheus Plugin in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249455#M2629</link>
    <description>&lt;P&gt;&lt;IMG src="https://emoji.discourse-cdn.com/twitter/watermelon.png?v=12" title=":watermelon:" class="emoji only-emoji" alt=":watermelon:" loading="lazy" width="20" height="20" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 09:22:47 GMT</pubDate>
    <dc:creator>cdtaylor</dc:creator>
    <dc:date>2023-06-29T09:22:47Z</dc:date>
    <item>
      <title>Create custom permissions in your Morpheus Plugin</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249453#M2627</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I was recently helping a customer who was trying to create a custom permission in their plugin with the intention that this permission be visible in the UI when creating a new role under &lt;STRONG&gt;Administration&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Roles&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;I have created a working implementation of how to add custom permissions via the &lt;A href="https://developer.morpheusdata.com/api/index.html"&gt;Plugin API&lt;/A&gt; (I wrote something quite groovy):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/uthm4n/permissions-plugin"&gt;https://github.com/uthm4n/permissions-plugin&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;BR /&gt;
The new permission shows up under the ‘Uncategorized Permissions’ section when you create a new role (or view an existing one) in the UI. It looks like it is possible to specify a &lt;A href="https://developer.morpheusdata.com/api/com/morpheusdata/model/Permission.html#build(java.lang.String,java.lang.String,java.util.List):~:text=lang.String%3E%C2%A0typesAsString()-,build,-public%20static%C2%A0"&gt;subcategory&lt;/A&gt; but I still need to test if/how this works.&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 15:50:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249453#M2627</guid>
      <dc:creator />
      <dc:date>2023-06-28T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom permissions in your Morpheus Plugin</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249454#M2628</link>
      <description>&lt;P&gt;Implementation of the onDestroy() method should handle gracefully disabling + removing the permission. If this isn’t happening, can you please raise a support case (via the support portal) and attach a link to your plugin code so that I can look into this further?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 09:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249454#M2628</guid>
      <dc:creator />
      <dc:date>2023-10-10T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom permissions in your Morpheus Plugin</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249455#M2629</link>
      <description>&lt;P&gt;&lt;IMG src="https://emoji.discourse-cdn.com/twitter/watermelon.png?v=12" title=":watermelon:" class="emoji only-emoji" alt=":watermelon:" loading="lazy" width="20" height="20" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 09:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249455#M2629</guid>
      <dc:creator>cdtaylor</dc:creator>
      <dc:date>2023-06-29T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom permissions in your Morpheus Plugin</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249456#M2630</link>
      <description>&lt;P&gt;Hii,&lt;/P&gt;
&lt;P&gt;I was experimenting this other day. I see that the newly created custom permission doesn’t get removed once the plugin is disabled or deleted. Can the deletion of that permission be achieved once plugin is removed?&lt;/P&gt;
&lt;P&gt;Additionally, I came across this issue while trying out:&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149853iE9B2EB2BB770D676/image-size/large?v=v2&amp;amp;px=2000" role="button" title="5ef6bff50071f9e030b1deb7eeb4022cd1c3ee5b.png" alt="5ef6bff50071f9e030b1deb7eeb4022cd1c3ee5b.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;
No logs were generated.&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 16:51:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-custom-permissions-in-your-morpheus-plugin/m-p/7249456#M2630</guid>
      <dc:creator />
      <dc:date>2023-10-09T16:51:58Z</dc:date>
    </item>
  </channel>
</rss>

