The collection of the specific provider's roles that grant access to some actions within Profile.
object.RoleGrants(aIncludeDeleted)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
|
aIncludeDeleted |
In, Required | bool |
If aIncludeDeleted = true, the revoked roles are
included |
Display the collection of the specific provider's roles (and their names) that grant access to some actions within Profile.
Dim aFilter
Dim aProviders, aProvider
Dim aRoles
Dim aRoleGrant
Dim aMessage
aIncludeDeleted = true
Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 2 'pcProvider
set aProviders = Profile.LoadProvidersByFilter(aFilter)
for each aProvider in aProviders
aMessage = aMessage & vbNewLine & vbNewLine & aProvider.FullName
set aRoles = aProvider.RoleGrants(aIncludeDeleted)
if aRoles.Count = 0 then
aMessage = aMessage & " has no roles being granted the access"
end if
for i = 0 to aRoles.Count - 1
set aRoleGrant = aRoles.Item(i)
aMessage = aMessage & vbNewLine & " Role Name: " &_
aRoleGrant.Grantee.RoleName
next 'i
next 'aProvider
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface Role Grants can be found in
.aIncludeDeleted
added in
v8.3.0