Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DetachPolicy (0.12 sec)

  1. cmd/admin-handlers-users_test.go

    	if err != nil {
    		c.Fatalf("policy list err: %v", err)
    	}
    	_, ok := ps[policy1]
    	if !ok {
    		c.Fatalf("policy was missing!")
    	}
    
    	// Detach policy1 to set up for policy2
    	_, err = s.adm.DetachPolicy(ctx, madmin.PolicyAssociationReq{
    		Policies: []string{policy1},
    		User:     accessKey,
    	})
    	if err != nil {
    		c.Fatalf("unable to detach policy: %v", err)
    	}
    
    	// 3.2 associate policy to user
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
Back to top