Connects
Please note JavaScript support is exclusive to SEAR 0.7.0 and later.
Valid operators for this type of request
| Operator | Valid |
|---|---|
| add | ❌ |
| alter | ✅ |
| delete | ✅ |
| extract | ✅ |
| search | ❌ |
Updating connects
Unlike with most of the other admin_types you can only use alter and delete to modify connections in the RACF database, alter is not just used to alter connects but also create them.
Creating a new connect
The sample below connects the RACF user LEONARD to the DEVOPS group with the group special attribute.
'use strict';
import { sear } from '@mainframe-renewal-project/searjs';
const request = {
"operation": "alter",
"admin_type": "group-connection",
"userid": "LEONARD",
"group": "DEVOPS",
"traits": {
"base:special": true,
},
};
const response = sear(request, true);
console.log(JSON.stringify(response.result, null, 2));
You can see the full list of traits in the traits/group_connection section
Deleting a connect
The sample below removes LEONARD’s connect from the RACF DEVOPS group.
'use strict';
import { sear } from '@mainframe-renewal-project/searjs';
const request = {
"operation": "delete",
"admin_type": "group-connection",
"userid": "LEONARD",
"group": "DEVOPS",
};
const response = sear(request, true);
console.log(JSON.stringify(response.result, null, 2));