on 07-15-2005 1:25 PM
Hi,
I need to control the visible menu items of my addon in dependency of the active user.
eg.:
Admin - All menu Items
User - All Items without administration buttons
or sth. like that.
How can I realize it?!
Greetz, Sebastian
Hi Sebastian,
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will also need to create different autorizations for each one of the options you want to diferentiate.
For that you need to use the DI object UserPermissionsTree. Please have a look to it on the DI help file. You have also a sample called Permissions inside the DI samples, 06.Permissions.
After you have defined your permissionsTree you will asign the different permissions to each one of the users.
Hope it helps
Trinidad.
Hi Itay,
After you installed the SDK Development version. All samples will be installed under C:\Program Files\SAP Manage\SAP Business One SDK\Samples.
In the specific case of Permissions, you will find it in:
C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\06.Permissions
Best regards,
Felipe
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.