You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following methods call Veracode REST APIs and return JSON. More information about the JIT settings is available in the [Veracode Docs](https://docs.veracode.com/r/Configure_SAML_Self_Registration).
4
+
5
+
-`JITDefaultSettings().get()` - retrieve the current Just In Time (JIT) default settings.
6
+
-`JITDefaultSettings().create(ip_restricted(opt),prefer_veracode_data(opt), allowed_ip_addresses(opt), use_csv_for_roles_claim(opt), use_csv_for_teams_claim(opt), use_csv_for_teams_managed_claim(opt), use_csv_for_ip_address_claim(opt),teams(opt),roles(opt))` - create new Just In Time (JIT) default settings. Settings include:
7
+
-`ip_restricted`: set to `True` to apply IP restrictions (defined in `allowed_ip_addresses`) for a JIT user.
8
+
-`prefer_veracode_data`: set to `True` to allow an administrator to manage roles, teams, and other settings for users in the Veracode administrative console after user creation. If set to `False`, the SAML assertion sent from the customer's Identity Provider must contain these values.
9
+
-`allowed_ip_addresses`: an array of IP addresses. See the [Veracode Docs](https://docs.veracode.com/r/admin_ip) for more information.
10
+
-`use_csv_for_roles_claim`: set to `True` if your IDP will send a comma separated list of roles (instead of an array).
11
+
-`use_csv_for_teams_claim`: set to `True` if your IDP will send a comma separated list of teams (instead of an array).
12
+
-`use_csv_for_teams_managed_claim`: set to `True` if your IDP will send a comma separated list of teams managed by a team admin (instead of an array).
13
+
-`use_csv_for_ip_address_claim`: set to `True` if your IDP will send a comma separated list of IP address restrictions (instead of an array).
14
+
-`teams`: an array of team IDs (UUIDs) that should be assigned to a JIT user by default.
15
+
-`roles`: an array of role IDs (UUIDs) that should be assigned to a JIT user by default.
16
+
-`JITDefaultSettings().update(jit_default_id, ip_restricted(opt),prefer_veracode_data(opt), allowed_ip_addresses(opt), use_csv_for_roles_claim(opt), use_csv_for_teams_claim(opt), use_csv_for_teams_managed_claim(opt), use_csv_for_ip_address_claim(opt),teams(opt),roles(opt))` - update existing Just In Time (JIT) default settings identified by `jit_default_id`.
17
+
-`JITDefaultSettings().delete(jit_default_id)` - delete the Just In Time (JIT) default settings identified by `jit_default_id`.
The following methods call Veracode REST APIs and return JSON.
4
+
5
+
-`Roles().get_all()`: get the list of roles for the organization.
6
+
-`Roles().get(role_guid)`: get the role definition for a given role.
7
+
-`Roles().create(role_name,role_description,is_api (opt),jit_assignable(opt),jit_assignable_default (opt),permissions (opt),child_roles (opt))`: create a role named `role_name`. You must specify either `permissions` or `child_roles`, or both. Arguments include:
8
+
-`role_description`: The human readable description of the role.
9
+
-`is_api`: Set to `True` to create a role for an API user. Defaults to `False`.
10
+
-`jit_assignable`: Set to `True` to allow the role to be assigned by a SAML assertion using just-in-time provisioning. Defaults to `True`.
11
+
-`jit_assignable_default`: Set to `True` to allow the role to be assigned by default during just-in-time provisioning. Defaults to `True`.
12
+
-`permissions`: An array of permission names. Use `Permissions().get_all()` to see the list of assignable permissions.
13
+
-`child_roles`: An array of role names. Adding a child role to a custom role gives the user all the permissions contained in the child role, in addition to any permissions defined in `permissinos`. You can add more than one child role.
14
+
-`Roles().update(role_name,role_description,role_guid,is_api (opt),jit_assignable(opt),jit_assignable_default (opt),permissions (opt),child_roles (opt))`: update the role identified by `role_guid` with the provided information.
15
+
-`Roles().delete(role_guid)`: delete the role identified by `role_guid`. Note: You can only delete custom roles.
16
+
-`Permissions().get_all()`: get the list of permissions that can be part of custom roles.
17
+
-`Permissions().get(permission_guid)`: get the permission definition for a given permission.
0 commit comments