Skip to content

Instantly share code, notes, and snippets.

@dolph
Forked from dstanek/gist:8446190
Last active January 3, 2016 09:59
Show Gist options
  • Save dolph/8446375 to your computer and use it in GitHub Desktop.
Save dolph/8446375 to your computer and use it in GitHub Desktop.
{
"rules": [
{
"local": [
{
"user": {
"name": "$0 $1",
"email": "$2"
}
}
],
"remote": [
{
"type": "FirstName"
},
{
"type": "LastName"
},
{
"type": "Email"
},
{
"type": "Group",
"any_one_of": ["Admin", "God"]
}
]
},
{
"local": [
{
"user": {
"name": "$0",
"email": "$1"
}
}
],
"remote": [
{
"type": "UserName"
},
{
"type": "Email"
},
{
"type": "Group",
"any_one_of": ["Customer"]
}
]
},
{
"local": [
{
"group": {
"id": "123"
}
},
{
"group": {
"id": "xyz"
}
}
],
"remote": [
{
"type": "Group",
"any_one_of": ["Special"]
},
{
"type": "Email",
"any_one_of": ["\@example\.com$"],
"regex": true
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment