Skip to content

Commit 28a8577

Browse files
authored
Update README.md
1 parent 1de4fcd commit 28a8577

File tree

1 file changed

+5
-60
lines changed

1 file changed

+5
-60
lines changed

README.md

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ This is a native rest connector. This repo is for additional tools specific to G
55

66
## Table of Contents
77
* [Getting Started](#getting-started)
8-
* [Automated Deletion](#automated-deletion)
8+
* [Authorization Scopes](#authorization-scopes)
9+
* [Recommended Scope Sets](#recommended-scope-sets)
10+
* [Available Provisioning Actions](#available-provisioning-actions)
11+
* [Custom Schemas](#custom-schemas)
912

1013
## Authorization Scopes
1114
|Table |Scopes |
@@ -45,7 +48,7 @@ This is a native rest connector. This repo is for additional tools specific to G
4548
|users_tokens |https://www.googleapis.com/auth/admin.directory.user.security |
4649
|users_verificationCodes |https://www.googleapis.com/auth/admin.directory.user.security |
4750

48-
## Recommend Scope Sets
51+
### Recommended Scope Sets
4952
* User Provisioning
5053
* https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.directory.group,https://www.googleapis.com/auth/admin.directory.orgunit
5154
* User Provisioning + Security
@@ -134,64 +137,6 @@ SYSTEMNAME = The name of the system in NIM.
134137

135138
A a sample file (CustomSchema.json) is provide in this repo.
136139

137-
## Automated Deletion
138-
139-
### Custom Schema Fields
140-
![image](https://user-images.githubusercontent.com/24281600/135354425-b5cd03e1-8fb9-43a8-9542-5c8d801c827f.png)
141-
142-
143-
### Example Filter
144-
![image](https://user-images.githubusercontent.com/24281600/135354511-235f5dea-0b52-4706-865e-25c691700292.png)
145-
146-
147-
### Populate Automated Deletion Date
148-
This script column sets up the automated deletion date so it can be populated in AD when the account is disabled
149-
```
150-
let daysInFuture = 365;
151-
152-
let date = new Date();
153-
date.setDate(date.getDate() + daysInFuture);
154-
let year = date.getUTCFullYear();
155-
let month = date.getUTCMonth()+1;
156-
let day = date.getUTCDate();
157-
158-
if (day < 10) { day = '0' + day; }
159-
if (month < 10) { month = '0' + month; }
160-
161-
let deleteDate = '' + year + '-' + month + '-' + day
162-
163-
return deleteDate;
164-
```
165-
166-
### Evaluate Automated Deletion Date
167-
This script column is used to determine if Automated Delete Date is in the future. If in the future, then the result is true.
168-
169-
170-
```
171-
let status = true;
172-
173-
try
174-
{
175-
let deleteDate = new Date(users['customSchemas_Tools4ever_DeleteDate']);
176-
let todayDate = new Date();
177-
178-
if(todayDate > deleteDate)
179-
{
180-
status = false;
181-
}
182-
else
183-
{
184-
}
185-
186-
}
187-
catch(e)
188-
{
189-
}
190-
191-
192-
return status;
193-
```
194-
195140

196141
# NIM Docs
197142
The official NIM documentation can be found at: https://docs.nimsuite.com

0 commit comments

Comments
 (0)