Temporary check if provided ID for granting is username or group name.