Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RemoveUsersFromGroup (0.19 sec)

  1. cmd/iam.go

    	if err != nil {
    		return updatedAt, err
    	}
    
    	sys.notifyForGroup(ctx, group)
    	return updatedAt, nil
    }
    
    // RemoveUsersFromGroup - remove users from group. If no users are
    // given, and the group is empty, deletes the group as well.
    func (sys *IAMSys) RemoveUsersFromGroup(ctx context.Context, group string, members []string) (updatedAt time.Time, err error) {
    	if !sys.Initialized() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    		}
    		gset.Remove(group)
    		cache.iamUserGroupMemberships[member] = gset
    	}
    
    	cache.updatedAt = time.Now()
    	return gi.UpdatedAt, nil
    }
    
    // RemoveUsersFromGroup - removes users from group, deleting it if it is empty.
    func (store *IAMStoreSys) RemoveUsersFromGroup(ctx context.Context, group string, members []string) (updatedAt time.Time, err error) {
    	if group == "" {
    		return updatedAt, errInvalidArgument
    	}
    
    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/admin-handlers-users.go

    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errIAMActionNotAllowed), r.URL)
    			return
    		}
    	}
    
    	var updatedAt time.Time
    	if updReq.IsRemove {
    		updatedAt, err = globalIAMSys.RemoveUsersFromGroup(ctx, updReq.Group, updReq.Members)
    	} else {
    		// Check if group already exists
    		if _, gerr := globalIAMSys.GetGroupDescription(updReq.Group); gerr != nil {
    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