Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetUsersWithMappedPolicies (0.19 sec)

  1. cmd/iam-store.go

    			MemberOf:  cache.iamUserGroupMemberships[k].ToSlice(),
    			UpdatedAt: pl.UpdatedAt,
    		}
    	}
    
    	return result
    }
    
    // GetUsersWithMappedPolicies - safely returns the name of access keys with associated policies
    func (store *IAMStoreSys) GetUsersWithMappedPolicies() map[string]string {
    	cache := store.rlock()
    	defer store.runlock()
    
    	result := make(map[string]string)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  2. cmd/iam.go

    		return nil, errIAMActionNotAllowed
    	}
    
    	select {
    	case <-sys.configLoaded:
    		ldapUsers := make(map[string]madmin.UserInfo)
    		for user, policy := range sys.store.GetUsersWithMappedPolicies() {
    			ldapUsers[user] = madmin.UserInfo{
    				PolicyName: policy,
    				Status:     madmin.AccountEnabled,
    			}
    		}
    		return ldapUsers, nil
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top