sync function for testing user access