<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 22:29:07 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[MODUSERSKC-13] User policy remains after user deleted</title>
                <link>https://folio-org.atlassian.net/browse/MODUSERSKC-13</link>
                <project id="10260" key="MODUSERSKC">mod-users-keycloak</project>
                    <description>&lt;p&gt;&lt;b&gt;Overview:&lt;/b&gt;&#160;User policy remains after user deleted&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Create a new user (POST /users-keycloak/users)&lt;/li&gt;
	&lt;li&gt;Create credentials for created user (POST /authn/credentials)&lt;/li&gt;
	&lt;li&gt;Assign capability sets to a user (POST /users/capability-sets)&lt;/li&gt;
	&lt;li&gt;Verify that a policy created for created user (GET /policies?limit=1000&amp;amp;query=name=&lt;b&gt;&amp;lt;&amp;lt;&lt;/b&gt;created user name&lt;b&gt;&amp;gt;&amp;gt;&lt;/b&gt;)&lt;/li&gt;
	&lt;li&gt;Delete created user (DELETE /users-keycloak/users/&amp;lt;&amp;lt;created user id&amp;gt;&amp;gt;)&lt;/li&gt;
	&lt;li&gt;Check if there are policies for deleted user (&lt;/li&gt;
	&lt;li&gt;Verify that a policy created for created user (GET /policies?limit=1000&amp;amp;query=name=&lt;b&gt;&amp;lt;&amp;lt;&lt;/b&gt;deleted user name&lt;b&gt;&amp;gt;&amp;gt;&lt;/b&gt;)&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt; No user policy for deleted user found&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual Results:&lt;/b&gt;&#160;The same policy that was found on Step 4 for a user remains after this user is deleted&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Additional Information:&lt;/b&gt;&lt;br/&gt;
See attached screencast: &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;/rest/api/3/attachment/content/63840&quot; title=&quot;User_policy_remains_after_user_deleted.mp4 attached to MODUSERSKC-13&quot; data-attachment-type=&quot;file&quot; data-attachment-name=&quot;User_policy_remains_after_user_deleted.mp4&quot; data-media-services-type=&quot;file&quot; data-media-services-id=&quot;73a2000b-2a71-4960-bb17-26d5fde9ec01&quot; rel=&quot;noreferrer&quot;&gt;User_policy_remains_after_user_deleted.mp4&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Happens on both &quot;evrk&quot; and &quot;Demo&quot; envs&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Interested parties:&lt;/b&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="79186">MODUSERSKC-13</key>
            <summary>User policy remains after user deleted</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10005" iconUrl="https://dev.folio.org/assets/jira-priority/tbd.svg">TBD</priority>
                        <status id="10002" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/generic.png" description="(Migrated on 4 Feb 2024 13:41 UTC)">In Review</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                                        <assignee accountid="712020:10eea72e-6828-4807-b086-47a8c15b69aa">Roman Leshchenko</assignee>
                                                                <reporter accountid="61af2efff24150007266ea04">Yauhen Viazau</reporter>
                                    <labels>
                            <label>back-end</label>
                            <label>epam-eureka</label>
                    </labels>
                <created>Thu, 4 Jan 2024 13:00:47 +0000</created>
                <updated>Mon, 5 Feb 2024 12:52:54 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="188031" author="712020:10eea72e-6828-4807-b086-47a8c15b69aa" created="Tue, 30 Jan 2024 13:03:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=61af2efff24150007266ea04&quot; class=&quot;user-hover&quot; rel=&quot;61af2efff24150007266ea04&quot; data-account-id=&quot;61af2efff24150007266ea04&quot; accountid=&quot;61af2efff24150007266ea04&quot; rel=&quot;noreferrer&quot;&gt;Yauhen Viazau&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;Regarding endpoints for verrification:&lt;/p&gt;

&lt;p&gt;1. Policy&#160; GET /policies?limit=1000&amp;amp;query=name=&lt;b&gt;&amp;lt;&amp;lt;*created user *ID&amp;gt;&amp;gt;&lt;/b&gt;,&#160;**&#160;changed in &lt;a href=&quot;https://folio-org.atlassian.net/browse/MODROLESKC-131&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://folio-org.atlassian.net/browse/MODROLESKC-131&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Other resources can be verified:&lt;br/&gt;
User-roles:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;curl --location &lt;span class=&quot;code-quote&quot;&gt;&apos;$host/roles/users/$userID&apos;&lt;/span&gt; \--header &lt;span class=&quot;code-quote&quot;&gt;&apos;Accept: application/json&apos;&lt;/span&gt; \--header &lt;span class=&quot;code-quote&quot;&gt;&apos;x-okapi-token: $token --header &apos;&lt;/span&gt;x-okapi-tenant: $tenant&apos;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;User-capability-set:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;curl --location &lt;span class=&quot;code-quote&quot;&gt;&apos;$host/users/capability-sets?query=userId=={userID}&amp;amp;limit=10&amp;amp;offset=0&apos;&lt;/span&gt; \--header &lt;span class=&quot;code-quote&quot;&gt;&apos;Accept: application/json&apos;&lt;/span&gt; \--header &lt;span class=&quot;code-quote&quot;&gt;&apos;x-okapi-token: $token --header &apos;&lt;/span&gt;x-okapi-tenant: $tenant&apos;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;User-capabilities:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;curl --location $host/users/capabilities?query=userId=={userID}&amp;amp;limit=10&amp;amp;offset=0&lt;span class=&quot;code-quote&quot;&gt;&apos; \--header &apos;&lt;/span&gt;Accept: application/json&lt;span class=&quot;code-quote&quot;&gt;&apos; \--header &apos;&lt;/span&gt;x-okapi-token: $token --header &lt;span class=&quot;code-quote&quot;&gt;&apos;x-okapi-tenant: $tenant&apos;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                                                            <comment id="199475" author="61af2efff24150007266ea04" created="Mon, 5 Feb 2024 12:29:34 +0000"  >&lt;p&gt;Tested on &#8220;evrk&#8220; environment - works as expected &lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/check.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; &lt;/p&gt;

&lt;p&gt;When a user is deleted, the following entities related to this user are also deleted automatically:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;user policies&lt;/li&gt;
	&lt;li&gt;user roles&lt;/li&gt;
	&lt;li&gt;user capabilities&lt;/li&gt;
	&lt;li&gt;user capability sets&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;See example: &lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;embeddedObject&quot;&gt;&lt;object classid=&quot;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&quot; codebase=&quot;https://www.apple.com/qtactivex/qtplugin.cab&quot; data=&quot;/rest/api/3/attachment/content/64513?stream=true&quot; height=&quot;930&quot; type=&quot;video/mp4&quot; width=&quot;1840&quot; &gt;&lt;param name=&quot;data&quot; value=&quot;/rest/api/3/attachment/content/64513?stream=true&quot;/&gt;&lt;param name=&quot;src&quot; value=&quot;/rest/api/3/attachment/content/64513?stream=true&quot;/&gt;&lt;param name=&quot;type&quot; value=&quot;video/mp4&quot;/&gt;&lt;embed height=&quot;930&quot; pluginspage=&quot;https://www.apple.com/quicktime/download/&quot; src=&quot;/rest/api/3/attachment/content/64513?stream=true&quot; type=&quot;video/mp4&quot; width=&quot;1840&quot; /&gt;&lt;/object&gt;&lt;/div&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="82655">FAT-11820</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="64513" name="MODUSERSKC-13_verified.mp4" size="8600818" author="61af2efff24150007266ea04" created="Mon, 5 Feb 2024 12:29:34 +0000"/>
                            <attachment id="63840" name="User_policy_remains_after_user_deleted.mp4" size="5013973" author="61af2efff24150007266ea04" created="Thu, 4 Jan 2024 13:01:15 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10149"><![CDATA[Eureka]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10063" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>PO Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10106" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>RCA Group</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10367"><![CDATA[TBD]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i08t7w:i</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="230">Eureka Sprint 44</customfieldvalue>
    <customfieldvalue id="231">Eureka Sprint 45</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 30 Jan 2024 13:03:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>