Question: please write this code in ruby 1) User has both gmail.com and aol.com accounts Gmail.com account is inactive (no activity in 4 months) Deactivate gmail.com

please write this code in ruby
 please write this code in ruby 1) User has both gmail.com

1) User has both gmail.com and aol.com accounts Gmail.com account is inactive (no activity in 4 months) Deactivate gmail.com account (not delete) Gmail.com account is active (has logged-in within 4 months) 1. notify user they must log in using okta moving forward 2. copy groups from gmail.com to aol.com account 3. copy project roles from gmail.com to aol.com account 4. contact user and confirm they have all required access 5. deactivate gmail.com account (not delete) 2) User has gmail.com account, only Gmail.com account is inactive (no activity in 4 months) Deactivate gmail.com account (not delete); 1 Gmail.com account is active (has logged-in within 4 months) 1. notify user they are in process of being migrated to okta 2. confirm user has access through Okta 3. send new invitation using aol.com 4. copy groups from gmail.com to aol.com account 5. copy project roles from gmail.com. to aol.com account 6. contact user and confirm they have all required access 7. notify user they must log in using okta, moving forward 8. deactivate gmail.com account (not delete) 1) User has both gmail.com and aol.com accounts Gmail.com account is inactive (no activity in 4 months) Deactivate gmail.com account (not delete) Gmail.com account is active (has logged-in within 4 months) 1. notify user they must log in using okta moving forward 2. copy groups from gmail.com to aol.com account 3. copy project roles from gmail.com to aol.com account 4. contact user and confirm they have all required access 5. deactivate gmail.com account (not delete) 2) User has gmail.com account, only Gmail.com account is inactive (no activity in 4 months) Deactivate gmail.com account (not delete); 1 Gmail.com account is active (has logged-in within 4 months) 1. notify user they are in process of being migrated to okta 2. confirm user has access through Okta 3. send new invitation using aol.com 4. copy groups from gmail.com to aol.com account 5. copy project roles from gmail.com. to aol.com account 6. contact user and confirm they have all required access 7. notify user they must log in using okta, moving forward 8. deactivate gmail.com account (not delete)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!