Uploaded image for project: 'WORKTERRA'
  1. WORKTERRA
  2. WT-13219

User Access Policy - Cannot add group to policy

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Medium
    • Resolution: System Behaviour
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BenAdmin
    • Labels:
      None
    • Environment:
      Production
    • Bug Severity:
      Medium
    • Module:
      Platform
    • Reported by:
      White Label
    • Company:
      Hope Community Resources
    • Item State:
      Production Complete

      Description

      We cannot add Hope Community Resources to the "BCC Admin" access policy. The box is greyed out. This issue is present on both production and PreProd

        Attachments

          Activity

          dkulling Debbie Kulling created issue -
          Prashant.samal Prashant Samal (Inactive) made changes -
          Field Original Value New Value
          Module Parent values: BenAdmin(10100) Parent values: Platform(10106)
          Show
          satyap Satya added a comment - Cc: Ganesh Sadawarte Samir Prashant Samal Hrishikesh Deshpande
          satyap Satya made changes -
          Assignee Satya [ ID10004 ] Santosh Balid [ santosh.balid ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Status Open [ 1 ] In Development [ 10007 ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Item State Parent values: Development(10200)Level 1 values: In Analysis(10204)
          santosh.balid Santosh Balid (Inactive) logged work - 31/Jan/18 02:20 PM
          • Time Spent:
            2h
             
            <No comment>
          santosh.balid Santosh Balid (Inactive) made changes -
          Remaining Estimate 0h [ 0 ]
          Time Spent 2h [ 7200 ]
          Worklog Id 102954 [ 102954 ]
          santosh.balid Santosh Balid (Inactive) logged work - 31/Jan/18 02:24 PM
          • Time Spent:
            1h
             
            <No comment>
          santosh.balid Santosh Balid (Inactive) made changes -
          Time Spent 2h [ 7200 ] 3h [ 10800 ]
          Worklog Id 102959 [ 102959 ]
          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          Hi Debbie Kulling,

          In our primary analysis we found that the SQL query which is responsible to filter out the enabled and disabled check boxes , needs to correct.

          Could you please provide your UserName and the exact policy name , which will help us in depth analysis.

          I assumed you tried with Username deb and policyname BCC Admin User , as there is no policy with name "BCC Admin" .

          Putting below corrected sample query for my reference purpose.

          SELECT Distinct CompanySystemUser.CompanyID as ID, c.Name, Users.SystemUserID, Users.ID as [UID], Case When exists(Select ID from UserAccessPolicy_CompanyMapping Where CompanyId=c.ID and AccessRightsPolicyId= 438) Then 1 Else 0 End As IsSelected, Case When exists(Select AccessRightsPolicyId from SystemUsers inner join Users on SystemUsers.ID= Users.SystemUserID Where SystemUsers.ID in(Select SystemUsersId from CompanySystemUser Where CompanyId=c.ID) and AccessRightsPolicyId =438 and Users.RoleID =4 AND Users.ID =459) Then 1 Else 0 End As IsUsed
          FROM Role, Users, CompanySystemUser, Company as c
          WHERE Users.RoleID =2
          AND Users.SystemUserID = CompanySystemUser.SystemUsersID
          AND CompanySystemUser.CompanyID = c.ID
          AND c.IsActive = 1
          AND Users.ID =459
          AND c.Name ='Hope Community Resources'
          ORDER BY c.Name

          Cc: Samir, Satya, Ganesh Sadawarte, Prashant Samal, Hrishikesh Deshpande, Bharti Satpute

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - Hi Debbie Kulling , In our primary analysis we found that the SQL query which is responsible to filter out the enabled and disabled check boxes , needs to correct. Could you please provide your UserName and the exact policy name , which will help us in depth analysis. I assumed you tried with Username deb and policyname BCC Admin User , as there is no policy with name "BCC Admin" . Putting below corrected sample query for my reference purpose. SELECT Distinct CompanySystemUser.CompanyID as ID, c.Name, Users.SystemUserID, Users.ID as [UID] , Case When exists(Select ID from UserAccessPolicy_CompanyMapping Where CompanyId=c.ID and AccessRightsPolicyId= 438) Then 1 Else 0 End As IsSelected, Case When exists(Select AccessRightsPolicyId from SystemUsers inner join Users on SystemUsers.ID= Users.SystemUserID Where SystemUsers.ID in(Select SystemUsersId from CompanySystemUser Where CompanyId=c.ID) and AccessRightsPolicyId =438 and Users.RoleID =4 AND Users.ID =459) Then 1 Else 0 End As IsUsed FROM Role, Users, CompanySystemUser, Company as c WHERE Users.RoleID =2 AND Users.SystemUserID = CompanySystemUser.SystemUsersID AND CompanySystemUser.CompanyID = c.ID AND c.IsActive = 1 AND Users.ID =459 AND c.Name ='Hope Community Resources' ORDER BY c.Name Cc: Samir , Satya , Ganesh Sadawarte , Prashant Samal , Hrishikesh Deshpande , Bharti Satpute
          santosh.balid Santosh Balid (Inactive) made changes -
          Assignee Santosh Balid [ santosh.balid ] Debbie Kulling [ dkulling ]
          dkulling Debbie Kulling made changes -
          Attachment screenshot-1.png [ 72780 ]
          Hide
          dkulling Debbie Kulling added a comment -

          The policy I am trying to add for "hope Community resources is below" When I go to the access policy using my user (user name: Deb) and click on "Company Mapping" the check box for "hope community resources" is greyed out and I cannot check it. This is the policy that BCC uses for all their admin users so we need to be able to add it to Hope Community Resources

          Show
          dkulling Debbie Kulling added a comment - The policy I am trying to add for "hope Community resources is below" When I go to the access policy using my user (user name: Deb) and click on "Company Mapping" the check box for "hope community resources" is greyed out and I cannot check it. This is the policy that BCC uses for all their admin users so we need to be able to add it to Hope Community Resources
          Prashant.samal Prashant Samal (Inactive) made changes -
          Assignee Debbie Kulling [ dkulling ] Santosh Balid [ santosh.balid ]
          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          Hi Debbie Kulling,

          Thanks for confirmation, my assumptions were correct. This needs a code fix , SQL query needs to be corrected. We Will do this code change and deploy the build on preprod in coming deployment and once fix get verified on preprod, we will deploy this to stage and production in coming sprint. I hope this is ok with you.

          Please let us know in case of any concerns.

          Regards,
          Santosh

          Cc: Jaideep Vinchurkar, Satya, Nidhi Kaul

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - Hi Debbie Kulling , Thanks for confirmation, my assumptions were correct. This needs a code fix , SQL query needs to be corrected. We Will do this code change and deploy the build on preprod in coming deployment and once fix get verified on preprod, we will deploy this to stage and production in coming sprint. I hope this is ok with you. Please let us know in case of any concerns. Regards, Santosh Cc: Jaideep Vinchurkar , Satya , Nidhi Kaul
          santosh.balid Santosh Balid (Inactive) logged work - 06/Feb/18 09:44 AM
          • Time Spent:
            0.5h
             

            Discussion and Analysis

          santosh.balid Santosh Balid (Inactive) made changes -
          Time Spent 3h [ 10800 ] 3.5h [ 12600 ]
          Worklog Id 103526 [ 103526 ]
          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          3C's:

          Concern: Partner User with Role=2 not able to map policy to companies
          Cause: User filteration criteria is missing in existing SQL queries of User Access Ploicy Comapny Mapping logic

          Correction: Added missing User check in SQL query.

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - 3C's: Concern: Partner User with Role=2 not able to map policy to companies Cause: User filteration criteria is missing in existing SQL queries of User Access Ploicy Comapny Mapping logic Correction: Added missing User check in SQL query.
          santosh.balid Santosh Balid (Inactive) made changes -
          Item State Parent values: Development(10200)Level 1 values: In Analysis(10204) Parent values: Development(10200)Level 1 values: In Progress(10206)
          santosh.balid Santosh Balid (Inactive) logged work - 07/Feb/18 01:31 PM
          • Time Spent:
            0.5h
             
            <No comment>
          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          Hi Debbie Kulling,

          I discussed this with Jaideep Vinchurkar, as per him it is correct system behavior. So no need to make any correction to existing behavior. Please let us know in case of any queries or you would like to have this change in existing policy.

          Regards,
          Santosh

          Cc: Jaideep Vinchurkar, Satya

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - Hi Debbie Kulling , I discussed this with Jaideep Vinchurkar , as per him it is correct system behavior. So no need to make any correction to existing behavior. Please let us know in case of any queries or you would like to have this change in existing policy. Regards, Santosh Cc: Jaideep Vinchurkar , Satya
          santosh.balid Santosh Balid (Inactive) made changes -
          Assignee Santosh Balid [ santosh.balid ] Debbie Kulling [ dkulling ]
          Resolution System Behaviour [ 10100 ]
          Status In Development [ 10007 ] Rejected [ 10004 ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Time Spent 3.5h [ 12600 ] 4h [ 14400 ]
          Worklog Id 103742 [ 103742 ]
          Hide
          dkulling Debbie Kulling added a comment -

          I don't understand your response. Hope Community Resources should have this role available. Why can we select every other company except Hope.

          Please add Hope Community Resources to the "BCC Admin User" on Stage, Production and Pre Prod"

          Show
          dkulling Debbie Kulling added a comment - I don't understand your response. Hope Community Resources should have this role available. Why can we select every other company except Hope. Please add Hope Community Resources to the "BCC Admin User" on Stage, Production and Pre Prod"
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) made changes -
          Resolution System Behaviour [ 10100 ] Unresolved [ 10200 ]
          Status Rejected [ 10004 ] Reopen [ 4 ]
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) made changes -
          Status Reopen [ 4 ] In Development [ 10007 ]
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) logged work - 12/Feb/18 06:40 AM
          • Time Spent:
            1h
             
            <No comment>
          Hide
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) added a comment - - edited

          Hi Debbie Kulling,

          Sorry about misunderstanding about this issue. I did further analysis on this and got to know this cannot be system's behavior.
          Here are updated 3c's for this issue.

          Concern: Debbie can not see the 'BCC Admin User' policy on admin user screen, which she wanted to assign to 'Hope admin' a company admin user. So she go to the access policy screen and tried to map the 'BCC Admin User' policy to Hope community resources company, but that company is grayed out in company-policy mapping screen.

          Cause: Below rules will explain how policies work for partner and CA logins,
          1. Partner/ broker and company admin can not have same access policy
          2. When we map a policy to company, the policy become admin policy and can be seen on company admin user screen.
          3. This policy can not be seen on create partner/ broker user.
          4. If a policy is assigned to any partner/ broker, it is grayed out on company mapping screen.
          5. If a policy is mapped to and company admin, then it cannot be un-mapped from company - policy mapping screen.

          from back end, we found that all partners of hope community are assigned to 'BCC Admin User' policy, so when you go to company mapping screen, it is grayed out there. However, in database the access policy - company mapping entry is missing, so it is not showing on any of the screen.

          Correction: I have added the access policy - company mapping entry in production database. And now you can see the entry on both screens.
          Santosh Balid, please do the same for pre prod as well.

          Show
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) added a comment - - edited Hi Debbie Kulling , Sorry about misunderstanding about this issue. I did further analysis on this and got to know this cannot be system's behavior. Here are updated 3c's for this issue. Concern: Debbie can not see the 'BCC Admin User' policy on admin user screen, which she wanted to assign to 'Hope admin' a company admin user. So she go to the access policy screen and tried to map the 'BCC Admin User' policy to Hope community resources company, but that company is grayed out in company-policy mapping screen. Cause: Below rules will explain how policies work for partner and CA logins, 1. Partner/ broker and company admin can not have same access policy 2. When we map a policy to company, the policy become admin policy and can be seen on company admin user screen. 3. This policy can not be seen on create partner/ broker user. 4. If a policy is assigned to any partner/ broker, it is grayed out on company mapping screen. 5. If a policy is mapped to and company admin, then it cannot be un-mapped from company - policy mapping screen. from back end, we found that all partners of hope community are assigned to 'BCC Admin User' policy, so when you go to company mapping screen, it is grayed out there. However, in database the access policy - company mapping entry is missing, so it is not showing on any of the screen. Correction: I have added the access policy - company mapping entry in production database. And now you can see the entry on both screens. Santosh Balid , please do the same for pre prod as well.
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) made changes -
          Time Spent 4h [ 14400 ] 5h [ 18000 ]
          Worklog Id 104091 [ 104091 ]
          jaideep.vinchurkar Jaideep Vinchurkar (Inactive) made changes -
          Assignee Debbie Kulling [ dkulling ] Santosh Balid [ santosh.balid ]
          santosh.balid Santosh Balid (Inactive) logged work - 12/Feb/18 01:52 PM
          • Time Spent:
            0.5h
             

            discussion

          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          Hi Jaideep Vinchurkar,

          I did the needful on preprod.

          Regards,
          Santosh

          Cc: Debbie Kulling

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - Hi Jaideep Vinchurkar , I did the needful on preprod. Regards, Santosh Cc: Debbie Kulling
          santosh.balid Santosh Balid (Inactive) made changes -
          Time Spent 5h [ 18000 ] 5.5h [ 19800 ]
          Worklog Id 104232 [ 104232 ]
          Hide
          dkulling Debbie Kulling added a comment -

          Thank you I see it added on both prod and pre prod. You can close this ticket

          Show
          dkulling Debbie Kulling added a comment - Thank you I see it added on both prod and pre prod. You can close this ticket
          Hide
          dkulling Debbie Kulling added a comment -

          I spoke too soon. Now I cannot add Kittitas County to the BCC Admin policy on Pre Prod. I don't understand why we can add some groups but not others. We were able to add city of Lynnwood

          Show
          dkulling Debbie Kulling added a comment - I spoke too soon. Now I cannot add Kittitas County to the BCC Admin policy on Pre Prod. I don't understand why we can add some groups but not others. We were able to add city of Lynnwood
          santosh.balid Santosh Balid (Inactive) made changes -
          Attachment KittasCounty.jpg [ 73312 ]
          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          Hi Debbie Kulling,

          Your User 'Deb' had no access to Kittitas County on preprod, so you were not able to see that.
          With my user, I am able to do so...I have done the neeful. Could you please check now.

          Regards,
          Santosh

          Cc: Jaideep Vinchurkar

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - Hi Debbie Kulling , Your User 'Deb' had no access to Kittitas County on preprod, so you were not able to see that. With my user, I am able to do so...I have done the neeful. Could you please check now. Regards, Santosh Cc: Jaideep Vinchurkar
          Hide
          santosh.balid Santosh Balid (Inactive) added a comment -

          Debbie Kulling, Please close this ticket, if everything working fine.

          Show
          santosh.balid Santosh Balid (Inactive) added a comment - Debbie Kulling , Please close this ticket, if everything working fine.
          santosh.balid Santosh Balid (Inactive) logged work - 13/Feb/18 01:30 PM
          • Time Spent:
            1h
             
            <No comment>
          santosh.balid Santosh Balid (Inactive) made changes -
          Assignee Santosh Balid [ santosh.balid ] Debbie Kulling [ dkulling ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Item State Parent values: Development(10200)Level 1 values: In Progress(10206) Parent values: Production Complete(10222)
          santosh.balid Santosh Balid (Inactive) made changes -
          Status In Development [ 10007 ] Local Testing [ 10200 ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Status Local Testing [ 10200 ] Stage Testing [ 10201 ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Status Stage Testing [ 10201 ] Production Testing [ 10202 ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Resolution Unresolved [ 10200 ] Done [ 10000 ]
          Status Production Testing [ 10202 ] Production Complete [ 10028 ]
          santosh.balid Santosh Balid (Inactive) made changes -
          Time Spent 5.5h [ 19800 ] 6.5h [ 23400 ]
          Worklog Id 104414 [ 104414 ]
          dkulling Debbie Kulling made changes -
          Resolution Done [ 10000 ]
          Status Production Complete [ 10028 ] Closed [ 6 ]
          rakeshr Rakesh Roy (Inactive) made changes -
          Root Cause Bug [ 18430 ]
          Original Estimate 0h [ 0 ]
          rakeshr Rakesh Roy (Inactive) made changes -
          Status Closed [ 6 ] Reopen in Production [ 10027 ]
          rakeshr Rakesh Roy (Inactive) made changes -
          Status Reopen in Production [ 10027 ] In Development [ 10007 ]
          rakeshr Rakesh Roy (Inactive) made changes -
          Resolution System Behaviour [ 10100 ]
          Status In Development [ 10007 ] Rejected [ 10004 ]
          Transition Time In Source Status Execution Times
          Santosh Balid (Inactive) made transition -
          Open In Development
          15h 8m 1
          Jaideep Vinchurkar (Inactive) made transition -
          Rejected Reopen
          4d 16h 40m 1
          Jaideep Vinchurkar (Inactive) made transition -
          Reopen In Development
          5s 1
          Santosh Balid (Inactive) made transition -
          In Development In LB Testing
          1d 7h 18m 1
          Santosh Balid (Inactive) made transition -
          In LB Testing Stage Testing
          4s 1
          Santosh Balid (Inactive) made transition -
          Stage Testing In Production Testing
          5s 1
          Santosh Balid (Inactive) made transition -
          In Production Testing Production Complete
          12s 1
          Debbie Kulling made transition -
          Production Complete Closed
          14d 1h 46m 1
          Rakesh Roy (Inactive) made transition -
          Closed Reopen in Production
          22d 20h 35m 1
          Rakesh Roy (Inactive) made transition -
          Reopen in Production In Development
          3s 1
          Rakesh Roy (Inactive) made transition -
          In Development Rejected
          7d 7h 34m 2

            People

            Assignee:
            dkulling Debbie Kulling
            Reporter:
            dkulling Debbie Kulling
            Account Executive:
            Debbie Kulling
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0h
                0h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6.5h
                6.5h