Domino 9 und frühere Versionen > ND6: Entwicklung

Rolle eines Benutzers ermitteln

<< < (2/3) > >>

Glombi:
In der Hilfe steht:

If the name you specify is listed explicitly in the ACL, then QueryAccessRoles returns the roles for that ACL entry and does not check groups.
If the name you specify is not listed explicitly in the ACL, QueryAccess checks to see if the name is a member of a group in the primary address book where the program is running: on a workstation the Personal Address Book; on a server the Domino Directory.

Also sollte es doch gehen.

Andreas

mibo11:
Ich tippe einmal, dass der Name, den du ausliest nicht im richtigen Format übergeben wird, also

CN=Theo Test/O=Testfirma.

Im Feld ListOwner des Gruppendokumentes (NAB) werden die Benutzer nämlich auch so gespeichert.

Gruß Sascha

Axel:
Hi,

schau mal hier: Prüfung der Zuordnung von Rollen mit Script.

Vielleicht hilft dir das weiter.


Axel

buzzy666:

--- Zitat von: Axel am 23.11.05 - 12:56:18 ---Hi,

schau mal hier: Prüfung der Zuordnung von Rollen mit Script.

Vielleicht hilft dir das weiter.


Axel


--- Ende Zitat ---

Hi,
nee, das bringt mir leider nichts, weil ich damit ja nur die Rollen des aktuellen Benutzers ermitteln kann - ich brauche die Rollen des Benutzers, der in ein Feld eingetragen wurde :-(

Danke & Gruß,
Buzzy

Axel:
Dann versuch's doch mal hiermit:

roles = notesDatabase.QueryAccessRoles( name$ )


Andreas hat ja einen Auszug aus der Designerhilfe bereits gepostet.


Axel

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln