@@ -88,6 +88,8 @@ they exist.
8888* Identity Attributes
8989* Identity Providers
9090* My Access (access granted to the given identity (user or service))
91+ * My Approvals
92+ * My Requests
9193* My Resources (access granted to the given identity (user or service))
9294* My Secrets (access granted to the given identity (user or service))
9395* Notifications
@@ -194,7 +196,7 @@ import json
194196
195197britive = Britive() # source needed data from environment variables
196198
197- print (json.dumps(britive.users.list(), indent = 2 , default = str ))
199+ print (json.dumps(britive.identity_management. users.list(), indent = 2 , default = str ))
198200```
199201
200202### Provide Needed Authentication Information in the Script
@@ -205,7 +207,7 @@ import json
205207
206208britive = Britive(tenant = ' example' , token = ' ...' ) # source token and tenant locally (not from environment variables)
207209
208- print (json.dumps(britive.users.list(), indent = 2 , default = str ))
210+ print (json.dumps(britive.identity_management. users.list(), indent = 2 , default = str ))
209211```
210212
211213### Create API Token for a Service Identity
@@ -216,7 +218,7 @@ import json
216218
217219britive = Britive() # source needed data from environment variables
218220
219- print (json.dumps(britive.service_identity_tokens.create(service_identity_id = ' abc123' ), indent = 2 , default = str ))
221+ print (json.dumps(britive.identity_management. service_identity_tokens.create(service_identity_id = ' abc123' ), indent = 2 , default = str ))
220222```
221223
222224### Run a Report (JSON and CSV output)
@@ -243,13 +245,13 @@ from britive.britive import Britive
243245
244246b = Britive()
245247
246- policy = b.profiles.policies.build(
248+ policy = b.application_management. profiles.policies.build(
247249 name = ' example' ,
248250 users = [' user@domain.com' ],
249251 approval_notification_medium = ' Email' ,
250252 approver_users = [' approver@domain.com' ],
251253 time_to_approve = 10
252254)
253255
254- b.profiles.policies.create(profile_id = ' ...' , policy = policy)
256+ b.application_management. profiles.policies.create(profile_id = ' ...' , policy = policy)
255257```
0 commit comments