property Process.setegid
Usage in Deno
```typescript import { type Process } from "node:node__process.d.ts"; ```The `process.setegid()` method sets the effective group identity of the process.
(See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
name string. If a group name is specified, this method blocks while resolving
the associated a numeric ID.
```js
import process from 'node:process';
if (process.getegid && process.setegid) {
console.log(`Current gid: ${process.getegid()}`);
try {
process.setegid(501);
console.log(`New gid: ${process.getegid()}`);
} catch (err) {
console.log(`Failed to set gid: ${err}`);
}
}
```
This function is only available on POSIX platforms (i.e. not Windows or
Android).
This feature is not available in `Worker` threads.
(id: number | string) => void