I'm trying to modify the access rights to a folder. I'm using aaApi_SelectAccessControlDataBuffer to get the Access Entries and I can loop through the buffer and get things like the member type and memberid (ACCE_PROP_MEMTYPE, ACCE_PROP_MEMID) but I don't see a property for the name of the access entry in the buffer. I was able to modify the access rights using aaApi_ApplyAccessControlList. but that was just modifying all access entries on the buffer. for example maybe on a certain folder I have 3 access entries
Internal, External, and Admin. internal and external are user lists and admin is a group. while looping the buffer I can get the type to know the difference admin and the rest. but I want to just check the name to make sure I'm changing the right access entry.
How would I go about getting the name of a specific access entry? anyone know of the api call I need?
thanks
JD
If I understand what you are asking, you would have to use the o_memtype and o_memberno to determine the access item name. IE. user/group/userlist. I believe the member types are: 1 = user, 2 = group, 3 = userlist
well I know how to figure that out. but say a folder has 2 userlists. I want to get the name of the userlist to verify I'm changing the access of the correct listlist.
I would guess that you would need to call a different function based on the member types. aaApi_SelectUserList, aaApi_SelectUser, aaApi_SelectGroup, then use aaApi_GetUserListStringProperty, aaApi_GetUserStringProperty, or aaApi_GetGroupStringProperty to get the name of the User, User List or Group.
The property name will also vary with the type: USRLST_PROP_NAME, GROUP_PROP_NAME, or USER_PROP_NAME (or USER_PROP_DESC)