Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RemoveUser (0.05 sec)

  1. cmd/admin-handlers-users_test.go

    	err = client.MakeBucket(ctx, getRandomBucketName(), minio.MakeBucketOptions{})
    	if err == nil {
    		c.Fatalf("user account was not disabled!")
    	}
    
    	// 5. Check that user can be deleted and verify it.
    	err = s.adm.RemoveUser(ctx, accessKey)
    	if err != nil {
    		c.Fatalf("user could not be deleted: %v", err)
    	}
    	usersMap, err = s.adm.ListUsers(ctx)
    	if err != nil {
    		c.Fatalf("error listing: %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. cmd/admin-router.go

    		// Remove user IAM
    		adminRouter.Methods(http.MethodDelete).Path(adminVersion+"/remove-user").HandlerFunc(adminMiddleware(adminAPI.RemoveUser)).Queries("accessKey", "{accessKey:.*}")
    
    		// List users
    		adminRouter.Methods(http.MethodGet).Path(adminVersion+"/list-users").HandlerFunc(adminMiddleware(adminAPI.ListBucketUsers)).Queries("bucket", "{bucket:.*}")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    	"github.com/minio/mux"
    	xldap "github.com/minio/pkg/v3/ldap"
    	"github.com/minio/pkg/v3/policy"
    	"github.com/puzpuzpuz/xsync/v3"
    )
    
    // RemoveUser - DELETE /minio/admin/v3/remove-user?accessKey=<access_key>
    func (a adminAPIHandlers) RemoveUser(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.DeleteUserAdminAction)
    	if objectAPI == nil {
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top