Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: CBAT Offer Letter - Fall
    • Labels:
      None

      Description

      Needs to allow to disabled all permissions for user , so needs to remove validation for at least one role needs to assigned.

      API's Affected

      GET : /api/userPermissions/

      {UserId}

      POST : /api/users
      PUT : /api/users

        Attachments

        1. DMS-1227.jpg
          DMS-1227.jpg
          265 kB
        2. DMS-1227.jpg
          DMS-1227.jpg
          237 kB

          Activity

          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment - - edited

          Previously we had validation for roles like at least one role should be assigned to user.

          We have removed this validation ,now we can add/update user with no assigned roles.

          Also we bypass userdid for update user api [PUT : /api/users]

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - - edited Previously we had validation for roles like at least one role should be assigned to user. We have removed this validation ,now we can add/update user with no assigned roles. Also we bypass userdid for update user api [PUT : /api/users]
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - - edited

          Hi Rohan J Khandave,

          We are getting Invalid user id message for PUT request.

          Can you please check this

          Thanks,
          Jayshree

          Priya Dhamande Sachin Hingole Hrishikesh Deshpande

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - - edited Hi Rohan J Khandave , We are getting Invalid user id message for PUT request. Can you please check this Thanks, Jayshree Priya Dhamande Sachin Hingole Hrishikesh Deshpande
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Hello Jayshree Nagpure,

          Fix is deployed under DMS-1204.

          Thanks,
          RohanK

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Hello Jayshree Nagpure , Fix is deployed under DMS-1204 . Thanks, RohanK
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment -

          Hi Rohan J Khandave,

          We have verified PUT request on Preproduction :

          corporate/dms/api/users
          ACC did - A7F0PT78MTMZ470WBBT
          User did - CHECK

          Payload :
          {
          "sourceProductList": [
          "string"
          ],
          "id": 0,
          "firstName": "Vinanti",
          "lastName": "Yadav",
          "userDid": "CHECK",
          "sourceUserId": "789789",
          "emailaddress": "TestHspl@harbingergroup.com",
          "userroles": [
          {
          "id": 0,
          "name": "ADMIN",
          "isroleassigned": true,
          "featuretype": "string",
          "featuredetailslist": [
          {
          "id": 0,
          "featureid": 0,
          "featurename": "string",
          "featurenamedescription": "string",
          "roleid": 0,
          "menupermission":

          { "norights": false, "readonly": true, "create": true, "update": true, "delete": true, "readpiidata": true }

          }
          ]
          }
          ],
          "usertype": 34
          }

          Getting USER not found message.
          Can you please look into this

          Thanks,
          Jayshree

          Priya Dhamande Sachin Hingole Hrishikesh Deshpande Satya

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - Hi Rohan J Khandave , We have verified PUT request on Preproduction : corporate/dms/api/users ACC did - A7F0PT78MTMZ470WBBT User did - CHECK Payload : { "sourceProductList": [ "string" ], "id": 0, "firstName": "Vinanti", "lastName": "Yadav", "userDid": "CHECK", "sourceUserId": "789789", "emailaddress": "TestHspl@harbingergroup.com", "userroles": [ { "id": 0, "name": "ADMIN", "isroleassigned": true, "featuretype": "string", "featuredetailslist": [ { "id": 0, "featureid": 0, "featurename": "string", "featurenamedescription": "string", "roleid": 0, "menupermission": { "norights": false, "readonly": true, "create": true, "update": true, "delete": true, "readpiidata": true } } ] } ], "usertype": 34 } Getting USER not found message. Can you please look into this Thanks, Jayshree Priya Dhamande Sachin Hingole Hrishikesh Deshpande Satya
          Hide
          rohan.khandave Rohan J Khandave (Inactive) added a comment -

          Issue is resolved.

          We can update user using userid.

          Also sync API end point names to api/user for all user API's.

          Show
          rohan.khandave Rohan J Khandave (Inactive) added a comment - Issue is resolved. We can update user using userid. Also sync API end point names to api/user for all user API's.
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment -

          Hi Rohan J Khandave,

          Verified PUT request on preproduction for User API.
          In response only ID is generated.
          Can you please show User id in proper format to make them sync with all API formating.

          Thanks,
          Jayshree

          Priya Dhamande Sachin Hingole Hrishikesh Deshpande

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - Hi Rohan J Khandave , Verified PUT request on preproduction for User API. In response only ID is generated. Can you please show User id in proper format to make them sync with all API formating. Thanks, Jayshree Priya Dhamande Sachin Hingole Hrishikesh Deshpande
          Hide
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment -

          Verified on Preproduction.
          Now in Put request, User ID is shown in proper format.

          Closing this ticket

          Thanks,
          Jayshree

          Priya Dhamande Sachin Hingole Hrishikesh Deshpande Satya

          Show
          jayshree.nagpure Jayshree Nagpure (Inactive) added a comment - Verified on Preproduction. Now in Put request, User ID is shown in proper format. Closing this ticket Thanks, Jayshree Priya Dhamande Sachin Hingole Hrishikesh Deshpande Satya

            People

            Assignee:
            rohan.khandave Rohan J Khandave (Inactive)
            Reporter:
            rohan.khandave Rohan J Khandave (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h Original Estimate - 8h
                8h
                Remaining:
                Time Spent - 15h Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - 15h Remaining Estimate - 6h
                15h