How to retrieve the Role of a custom sharepoint Group Progrmatically and also assigning the same roles to new user?

 I want to retrieve the roles assigned to custom group progrmatically and assigning the same roles to new user?

Hi,
According to your post, my understanding is that you want to retrieve the Role of a custom sharepoint Group Progrmatically and also assigning the same roles to new user.
To retrieve the Role of a custom sharepoint Group, you can refer to:
http://www.sharepointfix.com/2011/05/find-rolepermissions-of-currently.html
To assign the same roles to new user, you can refer to:
http://msdn.microsoft.com/library/Microsoft.SharePoint.SPRoleAssignment
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

Maybe you are looking for

  • Can you display info from 2 text fields in 1 other text field in a form?

    Im trying to make a form where you enter an address.  I want that info to display in another part of the same form as well.  When I get to the City and State, I want those to be 2 separate fields where you enter that info.  Down below, I would like t

  • Table name for condition type

    Hi, Could any one please tell me in which table name the Condition type values are saved and how to retrieve it. Reg, Ashok

  • Font changes when converting MSWord to PDF

    Sometimes when I convert a MSWord documents to a PDF, the font changes slightly on pages where there Figures.  The font appears to be in bold. How can I convert to a PDF and achieve a uniform look for the font throughout my documents? I used MS Word

  • Oracle.apps.fnd.framework.OAException: Could not create Java class

    Hi, Have created a customization in one environment which works just fine. When I deploy it to the next environment I get the error message: oracle.apps.fnd.framework.OAException: Could not create Java class Things I have checked: 1) Imported the per

  • Changing the Agent in the Developer Program Portal

    Our company just migrated one of our developer's iPhone Developer Program account to a company account. I know many others on this forum have done this (FYI -- it only took 2 weeks, but we hassled Developer Relations a lot). But has anyone ever chang