# protect API MAINUSER

**URL:** <https://techcommunity.softwareag.com/t/protect-api-mainuser/97258>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Add-on-Products, Natural-Security-and-Natural-SAF-Security, Natural-Other-Addons\
**Created:** [May 27, 2011, 2:42pm UTC](https://techcommunity.softwareag.com/t/protect-api-mainuser/97258 "2011-05-27T14:42:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@christian](https://techcommunity.softwareag.com/u/christian)\
**Post date:** [May 27, 2011, 2:42pm UTC](https://techcommunity.softwareag.com/t/protect-api-mainuser/97258/1 "2011-05-27T14:42:56Z")

</div>

Hello,

we have the need to restrict the copy to a specific library. A user application which uses API MAINUSER should be the only way to copy into this library. SYSMAIN can be restricted via SYSSEC. But the definitions in SYSSEC must allow MAINUSER to copy to this library. As subprog MAINUSER resides in lib  
SYSTEM on FNAT, everyone who is allowed to write programs, can use API MAINUSER to copy to this library.

How can I solve this ?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [June 24, 2011, 3:12pm UTC](https://techcommunity.softwareag.com/t/protect-api-mainuser/97258/2 "2011-06-24T15:12:36Z")

</div>

The restrictions set on the SYSMAIN utility profile apply to MAINUSER

---

<div class="post-metadata">

**Author:** ![Chad\_Scott](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Chad\_Scott](https://techcommunity.softwareag.com/u/Chad_Scott)\
**Post date:** [June 25, 2011, 2:27am UTC](https://techcommunity.softwareag.com/t/protect-api-mainuser/97258/3 "2011-06-25T02:27:49Z")

</div>

With current versions of NSC there is a separate MAINUSER utility profile available, but if I remember correctly it is not active (or visible?) by default.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:00pm UTC](https://techcommunity.softwareag.com/t/protect-api-mainuser/97258/4 "2021-04-02T15:00:19Z")

</div>


