When is IS_MEMBER installed on Sql Server?
3 answers
NULL response from IS_MEMBER means SQL Server does not recognize the Windows group.
It looks at the login token from your connection. It does not query Active Directory.
From the BOL link:
IS_MEMBER determines the Windows group membership by examining the access that Windows creates. The access token does not reflect changes in group membership that are made after the user connects to the instance of SQL Server.
So, while doamin \ kieran is in a group, you will probably have to log out and back in for your login token to update with the group membership.
Everything should work in your UDF (unless you have EXECUTE AS USER or OWNER in UDF)
+1
a source to share