code: func (c *UsersController) UpdateUserAsServiceAccount(ctx *app.UpdateUserAsServiceAccountUsersContext) error {
  
  	isSvcAccount, err := isServiceAccount(ctx, serviceNameAuth)
  	if err != nil {
  		log.Error(ctx, map[string]interface{}{
  			"err":         err,
  			"identity_id": ctx.ID,
  		}, "failed to determine if account is a service account")
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrUnauthorized(err))
  	}
  	if !isSvcAccount {
  		log.Error(ctx, map[string]interface{}{
  			"identity_id": ctx.ID,
  		}, "failed to determine if account is a service account")
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrUnauthorized(errs.New("a non-service account tried to updated a user.")))
  	}
  
  	idString := ctx.ID
  	id, err := uuid.FromString(idString)
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrBadRequest(errs.New("incorrect identity")))
  	}
  	return c.updateUserInDB(&id, ctx)
  }
docs: // UpdateUserAsServiceAccount updates a user when requested using a service account token