We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Request access to admin (add fixtures for Riley Orr)
### Issue description

Add fixtures so Riley can access the sandboxes

### Acceptance criteria

- [ ]  Fixtures added for Riley Orr

### Additional context

_No response_

### Links to other issues

_No response_

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/registrar/fixtures_users.py`
Content:
```
1 import logging
2 from faker import Faker
3 from django.db import transaction
4 
5 from registrar.models import (
6     User,
7     UserGroup,
8 )
9 
10 fake = Faker()
11 logger = logging.getLogger(__name__)
12 
13 
14 class UserFixture:
15     """
16     Load users into the database.
17 
18     Make sure this class' `load` method is called from `handle`
19     in management/commands/load.py, then use `./manage.py load`
20     to run this code.
21     """
22 
23     ADMINS = [
24         {
25             "username": "5f283494-31bd-49b5-b024-a7e7cae00848",
26             "first_name": "Rachid",
27             "last_name": "Mrad",
28         },
29         {
30             "username": "eb2214cd-fc0c-48c0-9dbd-bc4cd6820c74",
31             "first_name": "Alysia",
32             "last_name": "Broddrick",
33         },
34         {
35             "username": "8f8e7293-17f7-4716-889b-1990241cbd39",
36             "first_name": "Katherine",
37             "last_name": "Osos",
38         },
39         {
40             "username": "70488e0a-e937-4894-a28c-16f5949effd4",
41             "first_name": "Gaby",
42             "last_name": "DiSarli",
43             "email": "gaby@truss.works",
44         },
45         {
46             "username": "83c2b6dd-20a2-4cac-bb40-e22a72d2955c",
47             "first_name": "Cameron",
48             "last_name": "Dixon",
49         },
50         {
51             "username": "0353607a-cbba-47d2-98d7-e83dcd5b90ea",
52             "first_name": "Ryan",
53             "last_name": "Brooks",
54         },
55         {
56             "username": "30001ee7-0467-4df2-8db2-786e79606060",
57             "first_name": "Zander",
58             "last_name": "Adkinson",
59         },
60         {
61             "username": "2bf518c2-485a-4c42-ab1a-f5a8b0a08484",
62             "first_name": "Paul",
63             "last_name": "Kuykendall",
64         },
65         {
66             "username": "2a88a97b-be96-4aad-b99e-0b605b492c78",
67             "first_name": "Rebecca",
68             "last_name": "Hsieh",
69         },
70         {
71             "username": "fa69c8e8-da83-4798-a4f2-263c9ce93f52",
72             "first_name": "David",
73             "last_name": "Kennedy",
74         },
75         {
76             "username": "f14433d8-f0e9-41bf-9c72-b99b110e665d",
77             "first_name": "Nicolle",
78             "last_name": "LeClair",
79         },
80         {
81             "username": "24840450-bf47-4d89-8aa9-c612fe68f9da",
82             "first_name": "Erin",
83             "last_name": "Song",
84         },
85         {
86             "username": "e0ea8b94-6e53-4430-814a-849a7ca45f21",
87             "first_name": "Kristina",
88             "last_name": "Yin",
89         },
90         {
91             "username": "ac49d7c1-368a-4e6b-8f1d-60250e20a16f",
92             "first_name": "Vicky",
93             "last_name": "Chin",
94             "email": "szu.chin@associates.cisa.dhs.gov",
95         },
96     ]
97 
98     STAFF = [
99         {
100             "username": "319c490d-453b-43d9-bc4d-7d6cd8ff6844",
101             "first_name": "Rachid-Analyst",
102             "last_name": "Mrad-Analyst",
103             "email": "rachid.mrad@gmail.com",
104         },
105         {
106             "username": "b6a15987-5c88-4e26-8de2-ca71a0bdb2cd",
107             "first_name": "Alysia-Analyst",
108             "last_name": "Alysia-Analyst",
109         },
110         {
111             "username": "91a9b97c-bd0a-458d-9823-babfde7ebf44",
112             "first_name": "Katherine-Analyst",
113             "last_name": "Osos-Analyst",
114             "email": "kosos@truss.works",
115         },
116         {
117             "username": "2cc0cde8-8313-4a50-99d8-5882e71443e8",
118             "first_name": "Zander-Analyst",
119             "last_name": "Adkinson-Analyst",
120         },
121         {
122             "username": "57ab5847-7789-49fe-a2f9-21d38076d699",
123             "first_name": "Paul-Analyst",
124             "last_name": "Kuykendall-Analyst",
125         },
126         {
127             "username": "e474e7a9-71ca-449d-833c-8a6e094dd117",
128             "first_name": "Rebecca-Analyst",
129             "last_name": "Hsieh-Analyst",
130         },
131         {
132             "username": "5dc6c9a6-61d9-42b4-ba54-4beff28bac3c",
133             "first_name": "David-Analyst",
134             "last_name": "Kennedy-Analyst",
135         },
136         {
137             "username": "0eb6f326-a3d4-410f-a521-aa4c1fad4e47",
138             "first_name": "Gaby-Analyst",
139             "last_name": "DiSarli-Analyst",
140             "email": "gaby+1@truss.works",
141         },
142         {
143             "username": "cfe7c2fc-e24a-480e-8b78-28645a1459b3",
144             "first_name": "Nicolle-Analyst",
145             "last_name": "LeClair-Analyst",
146             "email": "nicolle.leclair@ecstech.com",
147         },
148         {
149             "username": "378d0bc4-d5a7-461b-bd84-3ae6f6864af9",
150             "first_name": "Erin-Analyst",
151             "last_name": "Song-Analyst",
152             "email": "erin.song+1@gsa.gov",
153         },
154         {
155             "username": "9a98e4c9-9409-479d-964e-4aec7799107f",
156             "first_name": "Kristina-Analyst",
157             "last_name": "Yin-Analyst",
158             "email": "kristina.yin+1@gsa.gov",
159         },
160         {
161             "username": "8f42302e-b83a-4c9e-8764-fc19e2cea576",
162             "first_name": "Vickster-Analyst",
163             "last_name": "Chin-Analyst",
164             "email": "szu.chin@ecstech.com",
165         },
166         {
167             "username": "d9839768-0c17-4fa2-9c8e-36291eef5c11",
168             "first_name": "Alex-Analyst",
169             "last_name": "Mcelya-Analyst",
170             "email": "ALEXANDER.MCELYA@cisa.dhs.gov",
171         },
172     ]
173 
174     def load_users(cls, users, group_name):
175         logger.info(f"Going to load {len(users)} users in group {group_name}")
176         for user_data in users:
177             try:
178                 user, _ = User.objects.get_or_create(username=user_data["username"])
179                 user.is_superuser = False
180                 user.first_name = user_data["first_name"]
181                 user.last_name = user_data["last_name"]
182                 if "email" in user_data:
183                     user.email = user_data["email"]
184                 user.is_staff = True
185                 user.is_active = True
186                 group = UserGroup.objects.get(name=group_name)
187                 user.groups.add(group)
188                 user.save()
189                 logger.debug(f"User object created for {user_data['first_name']}")
190             except Exception as e:
191                 logger.warning(e)
192         logger.info(f"All users in group {group_name} loaded.")
193 
194     @classmethod
195     def load(cls):
196         # Lumped under .atomic to ensure we don't make redundant DB calls.
197         # This bundles them all together, and then saves it in a single call.
198         # This is slightly different then bulk_create or bulk_update, in that
199         # you still get the same behaviour of .save(), but those incremental
200         # steps now do not need to close/reopen a db connection,
201         # instead they share one.
202         with transaction.atomic():
203             cls.load_users(cls, cls.ADMINS, "full_access_group")
204             cls.load_users(cls, cls.STAFF, "cisa_analysts_group")
205
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/src/registrar/fixtures_users.py b/src/registrar/fixtures_users.py
--- a/src/registrar/fixtures_users.py
+++ b/src/registrar/fixtures_users.py
@@ -93,6 +93,12 @@
             "last_name": "Chin",
             "email": "szu.chin@associates.cisa.dhs.gov",
         },
+        {
+            "username": "012f844d-8a0f-4225-9d82-cbf87bff1d3e",
+            "first_name": "Riley",
+            "last_name": "Orr",
+            "email": "riley+320@truss.works",
+        },
     ]
 
     STAFF = [
@@ -169,6 +175,12 @@
             "last_name": "Mcelya-Analyst",
             "email": "ALEXANDER.MCELYA@cisa.dhs.gov",
         },
+        {
+            "username": "082a066f-e0a4-45f6-8672-4343a1208a36",
+            "first_name": "Riley-Analyst",
+            "last_name": "Orr-Analyst",
+            "email": "riley+321@truss.works",
+        },
     ]
 
     def load_users(cls, users, group_name):

{"golden_diff": "diff --git a/src/registrar/fixtures_users.py b/src/registrar/fixtures_users.py\n--- a/src/registrar/fixtures_users.py\n+++ b/src/registrar/fixtures_users.py\n@@ -93,6 +93,12 @@\n             \"last_name\": \"Chin\",\n             \"email\": \"szu.chin@associates.cisa.dhs.gov\",\n         },\n+        {\n+            \"username\": \"012f844d-8a0f-4225-9d82-cbf87bff1d3e\",\n+            \"first_name\": \"Riley\",\n+            \"last_name\": \"Orr\",\n+            \"email\": \"riley+320@truss.works\",\n+        },\n     ]\n \n     STAFF = [\n@@ -169,6 +175,12 @@\n             \"last_name\": \"Mcelya-Analyst\",\n             \"email\": \"ALEXANDER.MCELYA@cisa.dhs.gov\",\n         },\n+        {\n+            \"username\": \"082a066f-e0a4-45f6-8672-4343a1208a36\",\n+            \"first_name\": \"Riley-Analyst\",\n+            \"last_name\": \"Orr-Analyst\",\n+            \"email\": \"riley+321@truss.works\",\n+        },\n     ]\n \n     def load_users(cls, users, group_name):\n", "issue": "Request access to admin (add fixtures for Riley Orr)\n### Issue description\n\nAdd fixtures so Riley can access the sandboxes\n\n### Acceptance criteria\n\n- [ ]  Fixtures added for Riley Orr\n\n### Additional context\n\n_No response_\n\n### Links to other issues\n\n_No response_\n", "before_files": [{"content": "import logging\nfrom faker import Faker\nfrom django.db import transaction\n\nfrom registrar.models import (\n    User,\n    UserGroup,\n)\n\nfake = Faker()\nlogger = logging.getLogger(__name__)\n\n\nclass UserFixture:\n    \"\"\"\n    Load users into the database.\n\n    Make sure this class' `load` method is called from `handle`\n    in management/commands/load.py, then use `./manage.py load`\n    to run this code.\n    \"\"\"\n\n    ADMINS = [\n        {\n            \"username\": \"5f283494-31bd-49b5-b024-a7e7cae00848\",\n            \"first_name\": \"Rachid\",\n            \"last_name\": \"Mrad\",\n        },\n        {\n            \"username\": \"eb2214cd-fc0c-48c0-9dbd-bc4cd6820c74\",\n            \"first_name\": \"Alysia\",\n            \"last_name\": \"Broddrick\",\n        },\n        {\n            \"username\": \"8f8e7293-17f7-4716-889b-1990241cbd39\",\n            \"first_name\": \"Katherine\",\n            \"last_name\": \"Osos\",\n        },\n        {\n            \"username\": \"70488e0a-e937-4894-a28c-16f5949effd4\",\n            \"first_name\": \"Gaby\",\n            \"last_name\": \"DiSarli\",\n            \"email\": \"gaby@truss.works\",\n        },\n        {\n            \"username\": \"83c2b6dd-20a2-4cac-bb40-e22a72d2955c\",\n            \"first_name\": \"Cameron\",\n            \"last_name\": \"Dixon\",\n        },\n        {\n            \"username\": \"0353607a-cbba-47d2-98d7-e83dcd5b90ea\",\n            \"first_name\": \"Ryan\",\n            \"last_name\": \"Brooks\",\n        },\n        {\n            \"username\": \"30001ee7-0467-4df2-8db2-786e79606060\",\n            \"first_name\": \"Zander\",\n            \"last_name\": \"Adkinson\",\n        },\n        {\n            \"username\": \"2bf518c2-485a-4c42-ab1a-f5a8b0a08484\",\n            \"first_name\": \"Paul\",\n            \"last_name\": \"Kuykendall\",\n        },\n        {\n            \"username\": \"2a88a97b-be96-4aad-b99e-0b605b492c78\",\n            \"first_name\": \"Rebecca\",\n            \"last_name\": \"Hsieh\",\n        },\n        {\n            \"username\": \"fa69c8e8-da83-4798-a4f2-263c9ce93f52\",\n            \"first_name\": \"David\",\n            \"last_name\": \"Kennedy\",\n        },\n        {\n            \"username\": \"f14433d8-f0e9-41bf-9c72-b99b110e665d\",\n            \"first_name\": \"Nicolle\",\n            \"last_name\": \"LeClair\",\n        },\n        {\n            \"username\": \"24840450-bf47-4d89-8aa9-c612fe68f9da\",\n            \"first_name\": \"Erin\",\n            \"last_name\": \"Song\",\n        },\n        {\n            \"username\": \"e0ea8b94-6e53-4430-814a-849a7ca45f21\",\n            \"first_name\": \"Kristina\",\n            \"last_name\": \"Yin\",\n        },\n        {\n            \"username\": \"ac49d7c1-368a-4e6b-8f1d-60250e20a16f\",\n            \"first_name\": \"Vicky\",\n            \"last_name\": \"Chin\",\n            \"email\": \"szu.chin@associates.cisa.dhs.gov\",\n        },\n    ]\n\n    STAFF = [\n        {\n            \"username\": \"319c490d-453b-43d9-bc4d-7d6cd8ff6844\",\n            \"first_name\": \"Rachid-Analyst\",\n            \"last_name\": \"Mrad-Analyst\",\n            \"email\": \"rachid.mrad@gmail.com\",\n        },\n        {\n            \"username\": \"b6a15987-5c88-4e26-8de2-ca71a0bdb2cd\",\n            \"first_name\": \"Alysia-Analyst\",\n            \"last_name\": \"Alysia-Analyst\",\n        },\n        {\n            \"username\": \"91a9b97c-bd0a-458d-9823-babfde7ebf44\",\n            \"first_name\": \"Katherine-Analyst\",\n            \"last_name\": \"Osos-Analyst\",\n            \"email\": \"kosos@truss.works\",\n        },\n        {\n            \"username\": \"2cc0cde8-8313-4a50-99d8-5882e71443e8\",\n            \"first_name\": \"Zander-Analyst\",\n            \"last_name\": \"Adkinson-Analyst\",\n        },\n        {\n            \"username\": \"57ab5847-7789-49fe-a2f9-21d38076d699\",\n            \"first_name\": \"Paul-Analyst\",\n            \"last_name\": \"Kuykendall-Analyst\",\n        },\n        {\n            \"username\": \"e474e7a9-71ca-449d-833c-8a6e094dd117\",\n            \"first_name\": \"Rebecca-Analyst\",\n            \"last_name\": \"Hsieh-Analyst\",\n        },\n        {\n            \"username\": \"5dc6c9a6-61d9-42b4-ba54-4beff28bac3c\",\n            \"first_name\": \"David-Analyst\",\n            \"last_name\": \"Kennedy-Analyst\",\n        },\n        {\n            \"username\": \"0eb6f326-a3d4-410f-a521-aa4c1fad4e47\",\n            \"first_name\": \"Gaby-Analyst\",\n            \"last_name\": \"DiSarli-Analyst\",\n            \"email\": \"gaby+1@truss.works\",\n        },\n        {\n            \"username\": \"cfe7c2fc-e24a-480e-8b78-28645a1459b3\",\n            \"first_name\": \"Nicolle-Analyst\",\n            \"last_name\": \"LeClair-Analyst\",\n            \"email\": \"nicolle.leclair@ecstech.com\",\n        },\n        {\n            \"username\": \"378d0bc4-d5a7-461b-bd84-3ae6f6864af9\",\n            \"first_name\": \"Erin-Analyst\",\n            \"last_name\": \"Song-Analyst\",\n            \"email\": \"erin.song+1@gsa.gov\",\n        },\n        {\n            \"username\": \"9a98e4c9-9409-479d-964e-4aec7799107f\",\n            \"first_name\": \"Kristina-Analyst\",\n            \"last_name\": \"Yin-Analyst\",\n            \"email\": \"kristina.yin+1@gsa.gov\",\n        },\n        {\n            \"username\": \"8f42302e-b83a-4c9e-8764-fc19e2cea576\",\n            \"first_name\": \"Vickster-Analyst\",\n            \"last_name\": \"Chin-Analyst\",\n            \"email\": \"szu.chin@ecstech.com\",\n        },\n        {\n            \"username\": \"d9839768-0c17-4fa2-9c8e-36291eef5c11\",\n            \"first_name\": \"Alex-Analyst\",\n            \"last_name\": \"Mcelya-Analyst\",\n            \"email\": \"ALEXANDER.MCELYA@cisa.dhs.gov\",\n        },\n    ]\n\n    def load_users(cls, users, group_name):\n        logger.info(f\"Going to load {len(users)} users in group {group_name}\")\n        for user_data in users:\n            try:\n                user, _ = User.objects.get_or_create(username=user_data[\"username\"])\n                user.is_superuser = False\n                user.first_name = user_data[\"first_name\"]\n                user.last_name = user_data[\"last_name\"]\n                if \"email\" in user_data:\n                    user.email = user_data[\"email\"]\n                user.is_staff = True\n                user.is_active = True\n                group = UserGroup.objects.get(name=group_name)\n                user.groups.add(group)\n                user.save()\n                logger.debug(f\"User object created for {user_data['first_name']}\")\n            except Exception as e:\n                logger.warning(e)\n        logger.info(f\"All users in group {group_name} loaded.\")\n\n    @classmethod\n    def load(cls):\n        # Lumped under .atomic to ensure we don't make redundant DB calls.\n        # This bundles them all together, and then saves it in a single call.\n        # This is slightly different then bulk_create or bulk_update, in that\n        # you still get the same behaviour of .save(), but those incremental\n        # steps now do not need to close/reopen a db connection,\n        # instead they share one.\n        with transaction.atomic():\n            cls.load_users(cls, cls.ADMINS, \"full_access_group\")\n            cls.load_users(cls, cls.STAFF, \"cisa_analysts_group\")\n", "path": "src/registrar/fixtures_users.py"}], "after_files": [{"content": "import logging\nfrom faker import Faker\nfrom django.db import transaction\n\nfrom registrar.models import (\n    User,\n    UserGroup,\n)\n\nfake = Faker()\nlogger = logging.getLogger(__name__)\n\n\nclass UserFixture:\n    \"\"\"\n    Load users into the database.\n\n    Make sure this class' `load` method is called from `handle`\n    in management/commands/load.py, then use `./manage.py load`\n    to run this code.\n    \"\"\"\n\n    ADMINS = [\n        {\n            \"username\": \"5f283494-31bd-49b5-b024-a7e7cae00848\",\n            \"first_name\": \"Rachid\",\n            \"last_name\": \"Mrad\",\n        },\n        {\n            \"username\": \"eb2214cd-fc0c-48c0-9dbd-bc4cd6820c74\",\n            \"first_name\": \"Alysia\",\n            \"last_name\": \"Broddrick\",\n        },\n        {\n            \"username\": \"8f8e7293-17f7-4716-889b-1990241cbd39\",\n            \"first_name\": \"Katherine\",\n            \"last_name\": \"Osos\",\n        },\n        {\n            \"username\": \"70488e0a-e937-4894-a28c-16f5949effd4\",\n            \"first_name\": \"Gaby\",\n            \"last_name\": \"DiSarli\",\n            \"email\": \"gaby@truss.works\",\n        },\n        {\n            \"username\": \"83c2b6dd-20a2-4cac-bb40-e22a72d2955c\",\n            \"first_name\": \"Cameron\",\n            \"last_name\": \"Dixon\",\n        },\n        {\n            \"username\": \"0353607a-cbba-47d2-98d7-e83dcd5b90ea\",\n            \"first_name\": \"Ryan\",\n            \"last_name\": \"Brooks\",\n        },\n        {\n            \"username\": \"30001ee7-0467-4df2-8db2-786e79606060\",\n            \"first_name\": \"Zander\",\n            \"last_name\": \"Adkinson\",\n        },\n        {\n            \"username\": \"2bf518c2-485a-4c42-ab1a-f5a8b0a08484\",\n            \"first_name\": \"Paul\",\n            \"last_name\": \"Kuykendall\",\n        },\n        {\n            \"username\": \"2a88a97b-be96-4aad-b99e-0b605b492c78\",\n            \"first_name\": \"Rebecca\",\n            \"last_name\": \"Hsieh\",\n        },\n        {\n            \"username\": \"fa69c8e8-da83-4798-a4f2-263c9ce93f52\",\n            \"first_name\": \"David\",\n            \"last_name\": \"Kennedy\",\n        },\n        {\n            \"username\": \"f14433d8-f0e9-41bf-9c72-b99b110e665d\",\n            \"first_name\": \"Nicolle\",\n            \"last_name\": \"LeClair\",\n        },\n        {\n            \"username\": \"24840450-bf47-4d89-8aa9-c612fe68f9da\",\n            \"first_name\": \"Erin\",\n            \"last_name\": \"Song\",\n        },\n        {\n            \"username\": \"e0ea8b94-6e53-4430-814a-849a7ca45f21\",\n            \"first_name\": \"Kristina\",\n            \"last_name\": \"Yin\",\n        },\n        {\n            \"username\": \"ac49d7c1-368a-4e6b-8f1d-60250e20a16f\",\n            \"first_name\": \"Vicky\",\n            \"last_name\": \"Chin\",\n            \"email\": \"szu.chin@associates.cisa.dhs.gov\",\n        },\n        {\n            \"username\": \"012f844d-8a0f-4225-9d82-cbf87bff1d3e\",\n            \"first_name\": \"Riley\",\n            \"last_name\": \"Orr\",\n            \"email\": \"riley+320@truss.works\",\n        },\n    ]\n\n    STAFF = [\n        {\n            \"username\": \"319c490d-453b-43d9-bc4d-7d6cd8ff6844\",\n            \"first_name\": \"Rachid-Analyst\",\n            \"last_name\": \"Mrad-Analyst\",\n            \"email\": \"rachid.mrad@gmail.com\",\n        },\n        {\n            \"username\": \"b6a15987-5c88-4e26-8de2-ca71a0bdb2cd\",\n            \"first_name\": \"Alysia-Analyst\",\n            \"last_name\": \"Alysia-Analyst\",\n        },\n        {\n            \"username\": \"91a9b97c-bd0a-458d-9823-babfde7ebf44\",\n            \"first_name\": \"Katherine-Analyst\",\n            \"last_name\": \"Osos-Analyst\",\n            \"email\": \"kosos@truss.works\",\n        },\n        {\n            \"username\": \"2cc0cde8-8313-4a50-99d8-5882e71443e8\",\n            \"first_name\": \"Zander-Analyst\",\n            \"last_name\": \"Adkinson-Analyst\",\n        },\n        {\n            \"username\": \"57ab5847-7789-49fe-a2f9-21d38076d699\",\n            \"first_name\": \"Paul-Analyst\",\n            \"last_name\": \"Kuykendall-Analyst\",\n        },\n        {\n            \"username\": \"e474e7a9-71ca-449d-833c-8a6e094dd117\",\n            \"first_name\": \"Rebecca-Analyst\",\n            \"last_name\": \"Hsieh-Analyst\",\n        },\n        {\n            \"username\": \"5dc6c9a6-61d9-42b4-ba54-4beff28bac3c\",\n            \"first_name\": \"David-Analyst\",\n            \"last_name\": \"Kennedy-Analyst\",\n        },\n        {\n            \"username\": \"0eb6f326-a3d4-410f-a521-aa4c1fad4e47\",\n            \"first_name\": \"Gaby-Analyst\",\n            \"last_name\": \"DiSarli-Analyst\",\n            \"email\": \"gaby+1@truss.works\",\n        },\n        {\n            \"username\": \"cfe7c2fc-e24a-480e-8b78-28645a1459b3\",\n            \"first_name\": \"Nicolle-Analyst\",\n            \"last_name\": \"LeClair-Analyst\",\n            \"email\": \"nicolle.leclair@ecstech.com\",\n        },\n        {\n            \"username\": \"378d0bc4-d5a7-461b-bd84-3ae6f6864af9\",\n            \"first_name\": \"Erin-Analyst\",\n            \"last_name\": \"Song-Analyst\",\n            \"email\": \"erin.song+1@gsa.gov\",\n        },\n        {\n            \"username\": \"9a98e4c9-9409-479d-964e-4aec7799107f\",\n            \"first_name\": \"Kristina-Analyst\",\n            \"last_name\": \"Yin-Analyst\",\n            \"email\": \"kristina.yin+1@gsa.gov\",\n        },\n        {\n            \"username\": \"8f42302e-b83a-4c9e-8764-fc19e2cea576\",\n            \"first_name\": \"Vickster-Analyst\",\n            \"last_name\": \"Chin-Analyst\",\n            \"email\": \"szu.chin@ecstech.com\",\n        },\n        {\n            \"username\": \"d9839768-0c17-4fa2-9c8e-36291eef5c11\",\n            \"first_name\": \"Alex-Analyst\",\n            \"last_name\": \"Mcelya-Analyst\",\n            \"email\": \"ALEXANDER.MCELYA@cisa.dhs.gov\",\n        },\n        {\n            \"username\": \"082a066f-e0a4-45f6-8672-4343a1208a36\",\n            \"first_name\": \"Riley-Analyst\",\n            \"last_name\": \"Orr-Analyst\",\n            \"email\": \"riley+321@truss.works\",\n        },\n    ]\n\n    def load_users(cls, users, group_name):\n        logger.info(f\"Going to load {len(users)} users in group {group_name}\")\n        for user_data in users:\n            try:\n                user, _ = User.objects.get_or_create(username=user_data[\"username\"])\n                user.is_superuser = False\n                user.first_name = user_data[\"first_name\"]\n                user.last_name = user_data[\"last_name\"]\n                if \"email\" in user_data:\n                    user.email = user_data[\"email\"]\n                user.is_staff = True\n                user.is_active = True\n                group = UserGroup.objects.get(name=group_name)\n                user.groups.add(group)\n                user.save()\n                logger.debug(f\"User object created for {user_data['first_name']}\")\n            except Exception as e:\n                logger.warning(e)\n        logger.info(f\"All users in group {group_name} loaded.\")\n\n    @classmethod\n    def load(cls):\n        # Lumped under .atomic to ensure we don't make redundant DB calls.\n        # This bundles them all together, and then saves it in a single call.\n        # This is slightly different then bulk_create or bulk_update, in that\n        # you still get the same behaviour of .save(), but those incremental\n        # steps now do not need to close/reopen a db connection,\n        # instead they share one.\n        with transaction.atomic():\n            cls.load_users(cls, cls.ADMINS, \"full_access_group\")\n            cls.load_users(cls, cls.STAFF, \"cisa_analysts_group\")\n", "path": "src/registrar/fixtures_users.py"}]}