Skip to main content
NetApp Knowledge Base

REST API role remains in System Manager GUI even if it deleted from both CLI and GUI

Views:
9
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

  • ONTAP 9.17.1P2
  • REST API
  • System Manager

Issue

  1. Rest API role (in case names 'test') created in the GUI with multiple privledges assigned:
    [kern_audit:info:3242] Vserver-01: http :: client-IP:65399 :: Vserver-01:admin:admin :: POST /api/security/roles : ["X-Dot-Client-App: SMv4"] {"name":"test","privileges":[{"access":"readonly","path":"/api"}]} :: Pending
    [kern_audit:info:3242] Vserver-01: http :: client-IP:65399 :: Vserver-01:admin:admin :: POST /api/security/roles : ["X-Dot-Client-App: SMv4"] {"name":"test","privileges":[{"access":"readonly","path":"/api"}]} :: Success:
    /api (readonly)

    /api/security (readonly)
    /api/security/authentication/password (all)
    /api/security/authentication/publickeys (all)
    ...
  2. A user (in case names 'user-01') created then deleted from the GUI:
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:50715 :: Vserver-01:admin:admin :: PATCH /api/security/accounts/account-uuid/user-01 : ["X-Dot-Client-App: SMv4"] {"applications":[{"application":" http","authentication_methods":["password"],"second_authentication_method":"none"}],"role":{"name":"test"}} :: Pending
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:50715 :: Vserver-01:admin:admin :: PATCH /api/security/accounts/account-uuid/user-01 : ["X-Dot-Client-App: SMv4"] {"applications":[{"application":" http","authentication_methods":["password"],"second_authentication_method":"none"}],"role":{"name":"test"}} :: Success:
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:58930 :: Vserver-01:admin:admin :: PATCH /api/security/accounts/account-uuid/user-01 : ["X-Dot-Client-App: SMv4"] {"password":***} :: Pending
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:58930 :: Vserver-01:admin:admin :: PATCH /api/security/accounts/account-uuid/user-01 : ["X-Dot-Client-App: SMv4"] {"password":***} :: Success:
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:63702 :: Vserver-01:admin:admin :: DELETE /api/security/accounts/account-uuid/user-01 : ["X-Dot-Client-App: SMv4"] :: Pending
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:63702 :: Vserver-01:admin:admin :: DELETE /api/security/accounts/account-uuid/user-01 : ["X-Dot-Client-App: SMv4"] :: Success:
  3. Then the role get deleted from the GUI:
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:59811 :: Vserver-01:admin:admin :: DELETE /api/security/roles/account-uuid/test : ["X-Dot-Client-App: SMv4"] :: Pending
    [kern_audit:info:3242] Vserver-01: http :: cluster-mgmt:59811 :: Vserver-01:admin:admin :: DELETE /api/security/roles/account-uuid/test : ["X-Dot-Client-App: SMv4"] :: Success:
  4. Confirmed the role no longer exists in CLI output of ::>security login role show
  5. However, the role test still remains in the GUI: (In case from Cluster -> Settings -> User and Roles -> Roles)

2010606346_Unable_to_delete_role_001.png

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.