Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for UpdateServiceAccount (0.55 seconds)

  1. cmd/iam.go

    	expiration        *time.Time
    }
    
    // UpdateServiceAccount - edit a service account
    func (sys *IAMSys) UpdateServiceAccount(ctx context.Context, accessKey string, opts updateServiceAccountOpts) (updatedAt time.Time, err error) {
    	if !sys.Initialized() {
    		return updatedAt, errServerNotInitialized
    	}
    
    	updatedAt, err = sys.store.UpdateServiceAccount(ctx, accessKey, opts)
    	if err != nil {
    		return updatedAt, err
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 76.5K bytes
    - Click Count (0)
  2. cmd/admin-handlers-users_test.go

    		c.Fatalf("Err creating svcacct admin client: %v", err)
    	}
    	svcAdmClient.SetCustomTransport(s.TestSuiteCommon.client.Transport)
    
    	// Attempt to update the policy on the service account.
    	err = svcAdmClient.UpdateServiceAccount(ctx, cr.AccessKey,
    		madmin.UpdateServiceAccountReq{
    			NewPolicy: fullS3PolicyBytes,
    		})
    
    	if err == nil {
    		c.Fatalf("service account should not be able to update policy on itself")
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 50.6K bytes
    - Click Count (0)
Back to Top