Whenever accessing a business object within a script, I always put in an error if there is a permission problem.
oAlias = oSession.GetObject(""IM_AliasItem_svc"")
if oAlias <> 0 then
Set oAlias = oSession.AsObject(oAlias)
else
retVal = oSession.AsObject(oSession.UI).MessageBox("""", ""Access to IM_AliasItem_svc is required for the script to work."")
'exit sub
end if
If you're using SQL commands directly in the script, then the applicable Windows userid will need permission to the database being accessed. Running from the client vs running from the server matters...