Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AccountStatus (0.13 sec)

  1. cmd/admin-handlers-users.go

    	if accessKey == creds.AccessKey {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    		return
    	}
    
    	updatedAt, err := globalIAMSys.SetUserStatus(ctx, accessKey, madmin.AccountStatus(status))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	replLogIf(ctx, globalSiteReplicationSys.IAMChangeHook(ctx, madmin.SRIAMItem{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    		}
    		matchedPolicies, _ := filterPolicies(cache, strings.Join(policies, ","), bucket)
    		if len(matchedPolicies) > 0 {
    			result[k] = madmin.UserInfo{
    				PolicyName: matchedPolicies,
    				Status: func() madmin.AccountStatus {
    					if c.IsValid() {
    						return madmin.AccountEnabled
    					}
    					return madmin.AccountDisabled
    				}(),
    				MemberOf: cache.iamUserGroupMemberships[k].ToSlice(),
    			}
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  3. cmd/iam.go

    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    // SetUserStatus - sets current user status, supports disabled or enabled.
    func (sys *IAMSys) SetUserStatus(ctx context.Context, accessKey string, status madmin.AccountStatus) (updatedAt time.Time, err error) {
    	if !sys.Initialized() {
    		return updatedAt, errServerNotInitialized
    	}
    
    	if sys.usersSysType != MinIOUsersSysType {
    		return updatedAt, errIAMActionNotAllowed
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top