RemoveSubject(Subj: ISecuritySubject): Boolean;
Subj - a security subject, that needs removing.
The RemoveSubject method removes the security subject, passed by the Subj parameter.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
SS: ISecuritySubject;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
SS := MS.Groups.Item(MS.Groups.Count - 1);
MS.RemoveSubject(SS);
End Sub Main;
After executing the example the last users group, created in security manager of the current repository, is removed.
See also: