Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewServiceAccount (0.1 sec)

  1. cmd/iam.go

    	expiration                 *time.Time
    	allowSiteReplicatorAccount bool // allow creating internal service account for site-replication.
    
    	claims map[string]any
    }
    
    // NewServiceAccount - create a new service account
    func (sys *IAMSys) NewServiceAccount(ctx context.Context, parentUser string, groups []string, opts newServiceAccountOpts) (auth.Credentials, time.Time, error) {
    	if !sys.Initialized() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    		// generated credentials are used to make requests, and in the
    		// latter, a group notion is not supported.
    	}
    
    	newCred, updatedAt, err := globalIAMSys.NewServiceAccount(ctx, targetUser, targetGroups, opts)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	createResp := madmin.AddServiceAccountResp{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
Back to top