Trim roles in parameters
Add implementation of file identity manager class