Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/iam-store.go

    	return nil
    }
    
    // PolicyDBGet - fetches policies associated with the given user or group, and
    // additional groups if provided.
    func (store *IAMStoreSys) PolicyDBGet(name string, groups ...string) ([]string, error) {
    	if name == "" {
    		return nil, errInvalidArgument
    	}
    
    	cache := store.rlock()
    	defer store.runlock()
    
    	policies, _, err := cache.policyDBGet(store, name, false, false)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  2. cmd/iam.go

    	}))
    
    	return
    }
    
    // PolicyDBGet - gets policy set on a user or group. If a list of groups is
    // given, policies associated with them are included as well.
    func (sys *IAMSys) PolicyDBGet(name string, groups ...string) ([]string, error) {
    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	return sys.store.PolicyDBGet(name, groups...)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    		return
    	}
    
    	var stsAccountPolicy policy.Policy
    
    	if sessionPolicy != nil {
    		stsAccountPolicy = *sessionPolicy
    	} else {
    		policiesNames, err := globalIAMSys.PolicyDBGet(stsAccount.ParentUser, stsAccount.Groups...)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if len(policiesNames) == 0 {
    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