I need to control the visible menu items of my addon in dependency of the active user.
Admin - All menu Items
User - All Items without administration buttons
or sth. like that.
How can I realize it?!
You can access the current logged on user using DI API.
(Do a Single Sign on to the SBO client, create the Company object with the context cookie)
Use the Company object's .username to get the active user. You can then user the SAPbobsCOM.Users object to allow you to check the user's status (the ".Superuser" property is probably what you're llokin for)