tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/IAMServiceAccountsService.java
private boolean isOwnerPemissionGettingChanged(IAMServiceAccountUser iamServiceAccountUser, String ownerNtId, boolean isPartOfOnboard) {
		if (isPartOfOnboard) {
			// sudo as part of onboard is allowed.
			return false;
		}
		// if owner is grating read/ deny to himself, not allowed. Write is allowed as part of activation.
		if (iamServiceAccountUser.getUsername().equalsIgnoreCase(ownerNtId) && !iamServiceAccountUser.getAccess().equals(TVaultConstants.WRITE_POLICY)) {
			return true;
		}
		return false;
	}
/**
	 * Method to check if the owner permission is getting changed.
	 * @param iamServiceAccountUser
	 * @return
	 */
Method to check if the owner permission is getting changed.
Method to check if the owner permission is getting changed .
private boolean isOwnerPemissionGettingChanged(IAMServiceAccountUser iamServiceAccountUser, String ownerNtId, boolean isPartOfOnboard) {
		if (isPartOfOnboard) {
			return false;
		}
		if (iamServiceAccountUser.getUsername().equalsIgnoreCase(ownerNtId) && !iamServiceAccountUser.getAccess().equals(TVaultConstants.WRITE_POLICY)) {
			return true;
		}
		return false;
	}
private boolean isOwnerPemissionGettingChanged ( IAMServiceAccountUser iamServiceAccountUser , String ownerNtId , boolean isPartOfOnboard ) { if ( isPartOfOnboard ) { return false ; } if ( iamServiceAccountUser . getUsername ( ) . equalsIgnoreCase ( ownerNtId ) && ! iamServiceAccountUser . getAccess ( ) . equals ( TVaultConstants . WRITE_POLICY ) ) { return true ; } return false ; }
Method to check if the owner permission is getting changed.
Method to check if the owner permission is getting changed .
// sudo as part of onboard is allowed. // if owner is grating read/ deny to himself, not allowed. Write is allowed as part of activation.