Appium: Is it possible to add custom DesiredCapabilities for grid

Hello,

I have requirement of configuring selenium grid where only valid user can create session.
Please help if we can add create session using custom capability.

Thanks