create defined types for grant and user