The schema consists of an object with the following properties:
- profiles: List of Object, where each Object defines a Profile
- groupPermissions: Dictionary, where each key is a group name and value is a requisite group name for being able to select it. Optional.
This object defines a single profile
- profileName: String, user-friendly profile name. Required.
- profileType: Enum, only
oneOf
andselfServeApproval
supported currently. Default:oneOf
- applicableToGroup: String, a Twingate group that a user must be in for them to see this profile. Default: "Everyone"
- approverGroup: String,
selfServerApproval
specific, a Twingate group a user must be in for them to approve the access request of the Profile. The group size should not exceed 20 members. Required. - timeOptions: Enum,
selfServerApproval
specific, the duration options requesters can select during access request. Must be one ofForever
,1h
,2h
,4h
,6h
,8h
,12h
,24h
,2d
,3d
,4d
,5d
,6d
,7d
,14d
,21d
,30d
,60d
,90d
. Default:[Forever]
- groups:
- oneOf: List of String, Twingate groups within the profile which the users can switch between. Required.
- selfServeApproval: List of String, Twingate groups within the profile which the users can request access to. Required
{
"profiles": [
{
"profileName": "Example Profile 1",
"profileType": "oneOf",
"groups": [
"Prod",
"Preprod",
"Testing"
],
"applicableToGroup": "Everyone"
},
{
"profileName": "Example Self-Serve Business Approvals",
"profileType": "selfServeApproval",
"groups": [
"HR",
"Finance",
"Sales"
],
"timeOptions": ["Forever", "1h", "8h", "24h", "7d", "30d", "90d"],
"applicableToGroup": "Everyone",
"approverGroup": "IT"
}
],
"groupPermissions": {
"Prod": "Admin"
}
}
In the example above:
Example Profile 1
- Any user in the
Everyone
group can access theExample Profile 1
Profile - Any user that can access the profile can choose from
Preprod
orTesting
groups via the Slackbot - In order to select the
Prod
group a user must also be in the requisite group namedAdmin
because of thegroupPermission
object.
Example Self-Serve Business Approvals
- Any user in the
Everyone
group can access theExample Self-Serve Business Approvals
Profile - Any users that can access the profile can request access to groups
HR
,Finance
andSales
- Any users that can access the profile can select access duration
Forever
,1h
,8h
,24h
,7d
,30d
and90d
- The request can be only be approved by the group
IT
members