Hi Mrudula,
I've never tried that. In theory you could do that, but it would be some work to parse the manifest.xsf. why do you need to access the roles using code? What are you trying to do? You could also create groups in Active Directory and use those...
Patrick Halstead
Project Manager at Qdabra