You may not need two layouts, one for each team. That would be needed only if your two teams interact with the data in ways that are distinctly different.
Manage | Security can do more than just control access to layouts. It can control access to specific records. See "Editing record access privileges" in FileMaker Help and check out this particular sub section: "Entering a formula for limiting access on a record-by-record basis" for a description of how to set this up.
I had a look at this but each team does interact differently. Their individual layouts are extended to data collection on their specific program, so much more involved than the main layout.
I was thinking it would be great if I could have a script that runs an automatic find on a specific field when that layout is opened. So if I selected a field specific to that teams layout and when it was opened there was a find done so it only showed records with this specific field. Does that make sense?
I just don't know how to write the script for that?
I am sure it is not hard if you know how, I just can't figure it out...
From your post, I am unsure if you understand. Yes, the teams need a data collection layout, but does one team collect data differently than the other to the point that each team needs their own layout? Given that they are recording data into the same table, that's a question that I have to ask. But it's secondary to the issue of limiting Team A's access to just their records and Team B to just the team B records. Manage Security can be set up to control both what layouts are accessible and also what records in each table in your database are accessible for a given user.
Once you have that set up, ANY find performed by a Team A user will return only records that match their find criteria and which they are authorized to access. All "no access" records are automatically omitted even if the record meets the users specified find criteria.
Thus, the following script performs a find that should find all records, but if the user is logged in with a less than full access password where the privilege set is defined to limit access to certain records, it will find only those records.
Enter Find Mode  ---> clear the pause check box
Set Field [YourTable::AFieldThatIsNeverEmpty ; "*" ]
Set Error Capture [on]
Perform Find 
This script can be set up to be performed by the OnFirstWindowOpen script trigger in File Options and then this script will be performed each time that the file is opened.