Skip to content

Instantly share code, notes, and snippets.

@SlavaKatiukha
Created November 7, 2022 07:43
Show Gist options
  • Select an option

  • Save SlavaKatiukha/4d902e5842f785345d1028f845ba7ac7 to your computer and use it in GitHub Desktop.

Select an option

Save SlavaKatiukha/4d902e5842f785345d1028f845ba7ac7 to your computer and use it in GitHub Desktop.
type: install
name: Invite Dev Agency
settings:
fields:
- type: string
name: collaboratorEmail
vtype: email
caption: Collaborate With
default: email@example.com
onInstall:
- users.collaboration.AddRole:
name: AllPermissions
description: For the dev agency
receiveNotification: true
policies: [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33
]
- set:
roleId: ${response.role.id}
- users.collaboration.InviteMember:
email: ${settings.collaboratorEmail}
displayName: Dev Agency
- users.collaboration.SetResources:
collaborationId: ${response.member.id}
resources: '[{"roleIds":[${this.roleId}],"resourceType":"ENV","resourceId":"*"}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment