Retrieve required association ids