-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure_add_user_to_group.html
63 lines (59 loc) · 2.25 KB
/
azure_add_user_to_group.html
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<script type="text/javascript">
RED.nodes.registerType('azure_add_user_to_group', {
category: 'authomize_azure',
color: '#a6bbcf',
defaults: {
name: { value: "Azure - Add user to group" },
auth: { type: 'azure_config', required: true },
userId: { value: '', required: true },
userIdType: {value: ''},
groupId: { value: '', required: true },
groupIdType: {value: ''},
},
inputs: 3,
outputs: 1,
icon: "file.png",
label: function () {
return this.name || "azure_add_user_to_group";
},
oneditprepare: function () {
$("#node-input-userId").typedInput({
type: "msg",
types: ["msg", "flow", "global", "str"],
typeField: "#node-input-userIdType"
});
$("#node-input-groupId").typedInput({
type: "msg",
types: ["msg", "flow", "global", "str"],
typeField: "#node-input-groupIdType"
});
},
});
</script>
<script type="text/html" data-template-name="azure_add_user_to_group">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-auth"><i class="fa fa-cogs"></i> AzureAD Credentials</label>
<input type="text" id="node-input-auth" placeholder="auth">
</div>
<div class="form-row">
<label for="node-input-groupId">
<i class="fa fa-group"></i> Group Id
</label>
<input type="text" id="node-input-groupId" placeholder="Enter the group id">
<input type="hidden" id="node-input-groupIdType" />
</div>
<div class="form-row">
<label for="node-input-userId">
<i class="fa fa-user"></i> User Id
</label>
<input type="text" id="node-input-userId" placeholder="Enter Azure AD user id">
<input type="hidden" id="node-input-userIdType" />
</div>
</script>
<script type="text/html" data-help-name="azure_add_user_to_group">
<p>Adds a user to a specific Azure group</p>
</script>