API based user querying to find out the SID.