Results 1 to 6 of 6

Thread: Moving Roles to another instance

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Moving Roles to another instance

    Hi.

    I have two instances of sugar a live and a test. In my test I have roles configured and tested and I now want to0 move them to the live instance. How can I move the roles I have created from one instance two another - the roles are complex and I don't like the idea of creating them again.

    Rgds
    Chris

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Moving Roles to another instance

    Hi Chris

    If you can make sure the users are the same at both instances you can export the tables acl_actions, acl_roles, acl_roles_actions, acl_roles_users from test instance and import into live instance.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Moving Roles to another instance

    Thanks,

    The users will always be the same but the ID sugar gives to users may not - will this have any effect on importing the test tables to the live database

    Rgds
    Chris

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Moving Roles to another instance

    So you can export the tables acl_actions, acl_roles, acl_roles_actions, import them into live instance, reassign the users into Roles and go to Admin -> Repair -> Repair Roles.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

    Default Re: Moving Roles to another instance

    Hi!

    Just copy acl_actions, acl_roles, acl_roles_actions to new instance.
    Then asign users to new roles.

    Make before Back Up!

  6. #6
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Moving Roles to another instance

    Thanks,

    That going to save me alot of time.

    Rgds
    Chris

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best Way to Get DB instance
    By ServerStorm in forum Developer Help
    Replies: 3
    Last Post: 2008-10-09, 06:13 PM
  2. non-db instance?
    By schurik in forum Developer Help
    Replies: 0
    Last Post: 2007-04-16, 02:41 PM
  3. User Roles not in the roles table?
    By doctorlard in forum Developer Help
    Replies: 3
    Last Post: 2006-04-18, 04:41 AM
  4. Roles-Contacts and Roles-Accounts
    By jmontani in forum Developer Help
    Replies: 0
    Last Post: 2005-07-20, 08:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •