Hi Mrudula,
We can do this using open rule based on condition. Set the default view is viewB. Follow the below steps to set the open rule and condition.
1. Go to Tools -> Form Options.
2. Click on ‘Open and Save#%92 tab option.
3. Click on ‘Rules#%92 button in ‘Open behavior#%92 column.
4. Click on ‘Add#%92 button.
5. Click on ‘Set Condition#%92 button and set your condition like form opened user is equal to userA.
6. Click on ‘Add Action#%92 button, select ‘Switch views#%92 option from ‘Action#%92 dropdown and select ‘viewA#%92 option from View dropdown.
7. Click on ‘OK#%92 four times.